You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
93 lines
4.4 KiB
93 lines
4.4 KiB
{template 'header', 'member'}
|
|
<div class="menu">
|
|
<table cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td class="tab" id="add"><a href="?action=add"><span>添加收藏</span></a></td>
|
|
<td class="tab" id="s3"><a href="?action=index"><span>商机收藏</span></a></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
{if $action == 'edit' || $action == 'add'}
|
|
<form method="post" action="?" onsubmit="return check();">
|
|
<input type="hidden" name="action" value="{$action}"/>
|
|
<input type="hidden" name="itemid" value="{$itemid}"/>
|
|
<input type="hidden" name="forward" value="{$forward}"/>
|
|
<table cellspacing="1" cellpadding="5" class="tb">
|
|
<tr>
|
|
<td class="tl">分类</td>
|
|
<td class="tr"><span id="type_box">{$type_select}</span> <a href="javascript:var type_item='favorite-{$_userid}',type_name='post[typeid]',type_default='{$L[default_type]}',type_id={$typeid},type_interval=setInterval('type_reload()',500);Dwidget('type.php?item=favorite', '[我的分类]', 1000, 600);" ><img src="{DT_STATIC}file/image/ico-add.png" width="11" height="11" title="管理分类"/></a></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl"><span class="f_red">*</span> 标题</td>
|
|
<td class="tr"><input type="text" size="45" name="post[title]" id="title" value="{$title}"/> {dstyle('post[style]', $style)} <span id="dtitle" class="f_red"></span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl"><span class="f_red">*</span> 网址</td>
|
|
<td class="tr"><input type="text" size="70" name="post[url]" id="url" value="{$url}"/> <span id="durl" class="f_red"></span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">备注</td>
|
|
<td class="tr"><input type="text" size="70" name="post[note]" id="note" value="{$note}"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">排序</td>
|
|
<td class="tr f_gray"><input type="text" size="3" name="post[listorder]" id="listorder" value="{$listorder}"/> 请填写数字,数字越大越靠前</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl"> </td>
|
|
<td class="tr" height="50"><input type="submit" name="submit" value="{if $action=='add'}添 加{else}修 改{/if}" class="btn_g"/> <input type="button" value="取 消" class="btn" onclick="history.back(-1);"/></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
<script type="text/javascript">s('favorite');m({if $action=='add'}'add'{else}'s3'{/if});</script>
|
|
{else}
|
|
<form action="?">
|
|
<div class="tt">
|
|
{$fields_select}
|
|
<input type="text" size="70" name="kw" value="{$kw}" title="关键词"/>
|
|
{$type_select}
|
|
<input type="submit" value=" 搜 索 " class="btn"/>
|
|
<input type="button" value=" 重 置 " class="btn" onclick="Go('?');"/>
|
|
</div>
|
|
</form>
|
|
<style type="text/css">
|
|
.list-favor {border-top:#DDDDDD 1px solid;border-left:#DDDDDD 1px solid;display:table;margin:10px 0;}
|
|
.list-favor div {width:160px;height:220px;overflow:hidden;padding:20px;float:left;border-right:#DDDDDD 1px solid;border-bottom:#DDDDDD 1px solid;}
|
|
.list-favor p {height:160px;overflow:hidden;margin:0;}
|
|
.list-favor p img {width:160px;}
|
|
.list-favor h6 {height:40px;line-height:20px;overflow:hidden;margin:20px 0 0 0;padding:0;font-weight:normal;}
|
|
.list-favor b {display:none;width:200px;height:24px;line-height:24px;margin:-20px 0 0 -20px;background:#333333;font-weight:normal;text-align:center;color:#FFFFFF;z-index:2;position:absolute;opacity:0.8;filter:alpha(opacity=80);}
|
|
.list-favor div:hover {background:#F1F1F1;}
|
|
.list-favor div:hover b {display:block;}
|
|
</style>
|
|
<div class="list-favor">
|
|
{loop $lists $k $v}
|
|
<div>
|
|
<b><a href="?action=edit&itemid={$v[itemid]}" class="w">修改</a> | <a href="?action=delete&itemid={$v[itemid]}" onclick="return confirm('确定要删除吗?此操作将不可撤销');" class="w">删除</a></b>
|
|
<p><a href="{$v[url]}" target="_blank"><img src="{if $v[thumb]}{$v[thumb]}{else}{DT_SKIN}image/nopic160.png{/if}"/></a></p>
|
|
<h6><a href="{$v[url]}" target="_blank" class="t">{$v[title]}</a></h6>
|
|
</div>
|
|
{/loop}
|
|
</div>
|
|
{if $MG[favorite_limit]}
|
|
<div class="limit">收藏夹容量 <span class="f_b f_red">{$MG[favorite_limit]}</span> 条 当前已收藏 <span class="f_b">{$limit_used}</span> 条 还可以收藏 <span class="f_b f_blue">{$limit_free}</span> 条</div>
|
|
{/if}
|
|
<div class="pages">{$pages}</div>
|
|
<script type="text/javascript">s('favorite');m('s3');</script>
|
|
{/if}
|
|
{if $action=='add' || $action=='edit'}
|
|
<script type="text/javascript">
|
|
function check() {
|
|
if(Dd('title').value.length < 2) {
|
|
Dmsg('请填写标题', 'title');
|
|
return false;
|
|
}
|
|
if(Dd('url').value.length < 12) {
|
|
Dmsg('请填写网址', 'url');
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
</script>
|
|
{/if}
|
|
{template 'footer', 'member'}
|