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.
523 lines
20 KiB
523 lines
20 KiB
{template 'header', 'member'}
|
|
<div class="menu">
|
|
<table cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td class="tab" id="add"><a href="?mid={$mid}&action=add"><span>添加{$MOD[name]}</span></a></td>
|
|
{if $_userid}
|
|
<td class="tab" id="s3"><a href="?mid={$mid}"><span>已发布({$nums[3]})</span></a></td>
|
|
<td class="tab" id="s2"><a href="?mid={$mid}&status=2"><span>审核中({$nums[2]})</span></a></td>
|
|
<td class="tab" id="s1"><a href="?mid={$mid}&status=1"><span>未通过({$nums[1]})</span></a></td>
|
|
<td class="tab" id="s4"><a href="?mid={$mid}&status=4"><span>已过期({$nums[4]})</span></a></td>
|
|
{/if}
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
{if $action=='add' || $action=='edit'}
|
|
<script type="text/javascript" src="{DT_STATIC}file/script/player.js?v={if DT_DEBUG}{DT_TIME}{else}{DT_REFRESH}{/if}"></script>
|
|
<script type="text/javascript" src="{DT_STATIC}file/script/url2video.js?v={if DT_DEBUG}{DT_TIME}{else}{DT_REFRESH}{/if}"></script>
|
|
<iframe src="" name="send" id="send" style="display:none;"></iframe>
|
|
<form method="post" id="dform" action="?" target="send" onsubmit="return check();">
|
|
<input type="hidden" name="action" value="{$action}"/>
|
|
<input type="hidden" name="mid" value="{$mid}"/>
|
|
<input type="hidden" name="itemid" value="{$itemid}"/>
|
|
<input type="hidden" name="forward" value="{$forward}"/>
|
|
<table cellpadding="10" cellspacing="1" class="tb">
|
|
{if $status==1 && $action=='edit' && $note}
|
|
<tr>
|
|
<td class="tl">未通过原因</td>
|
|
<td class="tr f_blue">{$note}</td>
|
|
</tr>
|
|
{/if}
|
|
<tr>
|
|
<td class="tl"><span class="f_red">*</span> 信息类型</td>
|
|
<td class="tr">
|
|
{loop $TYPE $k $v}
|
|
<input type="radio" name="post[typeid]" value="{$k}" {if $k==$typeid}checked{/if} id="typeid_{$k}"/> <label for="typeid_{$k}" id="t_{$k}">{$v}</label>
|
|
{/loop}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl"><span class="f_red">*</span> 信息标题</td>
|
|
<td class="tr f_gray"><input name="post[title]" type="text" id="title" size="70" value="{$title}"/> (2-30个字)<span id="dtitle" class="f_red"></span></td>
|
|
</tr>
|
|
{if $action=='add' && $could_color}
|
|
<tr>
|
|
<td class="tl">标题颜色</td>
|
|
<td class="tr">
|
|
{dstyle('color')}
|
|
设置信息标题颜色需消费 <strong class="f_red">{$MOD[credit_color]}</strong> {$DT[credit_name]}
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
<tr>
|
|
<td class="tl"><span class="f_red">*</span> 行业分类</td>
|
|
<td class="tr"><div id="catesch"></div>{ajax_category_select('post[catid]', '选择分类', $catid, $moduleid)}{if $DT[schcate_limit]} <a href="javascript:schcate({$moduleid});" class="t">搜索分类</a>{/if} <span id="dcatid" class="f_red"></span></td>
|
|
</tr>
|
|
{if $CP}
|
|
<script type="text/javascript">
|
|
var property_catid = {$catid};
|
|
var property_itemid = {$itemid};
|
|
var property_admin = 0;
|
|
</script>
|
|
<script type="text/javascript" src="{DT_STATIC}file/script/property.js?v={if DT_DEBUG}{DT_TIME}{else}{DT_REFRESH}{/if}"></script>
|
|
<tbody id="load_property" style="display:none;">
|
|
<tr><td></td><td></td></tr>
|
|
</tbody>
|
|
{/if}
|
|
<tr>
|
|
<td class="tl">产品品牌</td>
|
|
<td class="tr"><input name="post[brand]" type="text" size="30" value="{$brand}"/></td>
|
|
</tr>
|
|
{if $FD}{fields_html('<td class="tl">', '<td class="tr">', $item)}{/if}
|
|
<tr>
|
|
<td class="tl">产品图片</td>
|
|
<td class="tr">
|
|
<div id="thumbs">
|
|
{loop $thumbs $k $v}
|
|
<div class="thumbs">
|
|
<input type="hidden" name="post[thumbs][]" id="thumb{$k}" value="{$v}"/>
|
|
<div><img src="{if $v}{$v}{else}{DT_SKIN}image/waitpic.gif{/if}" width="100" height="100" id="showthumb{$k}" title="上传/预览图片" alt="" onerror="this.src='{DT_SKIN}image/waitpic.gif';" onclick="if(this.src.indexOf('waitpic.gif') == -1){_preview(Dd('showthumb{$k}').src, 1);}else{Dalbum({$k},{$moduleid},{$MOD[thumb_width]},{$MOD[thumb_height]}, Dd('thumb{$k}').value, true);}"/></div>
|
|
<p><img src="{DT_STATIC}file/image/ico-upl.png" width="11" height="11" title="上传" onclick="Dalbum({$k},{$moduleid},{$MOD[thumb_width]},{$MOD[thumb_height]}, Dd('thumb{$k}').value, true);"/><img src="{DT_STATIC}file/image/ico-sel.png" width="11" height="11" title="选择" onclick="selAlbum({$k});" style="margin:0 11px;"/><img src="{DT_STATIC}file/image/ico-del.png" width="11" height="11" title="删除" onclick="delAlbum({$k},'wait');"/></p>
|
|
</div>
|
|
{/loop}
|
|
</div>
|
|
<div class="dsn" id="thumbtpl">
|
|
<div class="thumbs">
|
|
<input type="hidden" name="post[thumbs][]" id="thumb-99" value=""/>
|
|
<div><img src="{DT_SKIN}image/waitpic.gif" width="100" height="100" id="showthumb-99" title="上传/预览图片" alt="" onclick="if(this.src.indexOf('waitpic.gif') == -1){_preview(Dd('showthumb-99').src, 1);}else{Dalbum(-99,{$moduleid},{$MOD[thumb_width]},{$MOD[thumb_height]}, Dd('thumb-99').value, true);}"/></div>
|
|
<p><img src="{DT_STATIC}file/image/ico-upl.png" width="11" height="11" title="上传" onclick="Dalbum(-99,{$moduleid},{$MOD[thumb_width]},{$MOD[thumb_height]}, Dd('thumb{if $thumbs}{$k}{else}0{/if}').value, true);"/><img src="{DT_STATIC}file/image/ico-sel.png" width="11" height="11" title="选择" onclick="selAlbum(-99);" style="margin:0 11px;"/><img src="{DT_STATIC}file/image/ico-del.png" width="11" height="11" title="删除" onclick="delAlbum(-99,'wait');"/></p>
|
|
</div>
|
|
</div>
|
|
<div class="thumbs" id="thumbmuti" title="批量上传图片,按Ctrl键多选">
|
|
<div id="file-picker"><img src="{DT_SKIN}image/addpic.gif" width="100" height="100" alt=""/></div>
|
|
<p>批量上传<span id="file-progress"></span></p>
|
|
</div>
|
|
<span id="dthumb" class="f_red"></span>
|
|
<script type="text/javascript" src="{DT_STATIC}file/script/webuploader.min.js?v={if DT_DEBUG}{DT_TIME}{else}{DT_REFRESH}{/if}"></script>
|
|
<script type="text/javascript">
|
|
var album_max = parseInt({$DT[thumb_max]});
|
|
if(album_max < 5 || album_max > 99) album_max = 9;
|
|
var fileu = WebUploader.create({
|
|
auto: true,
|
|
server: UPPath+'?moduleid={$moduleid}&action=webuploader&from=album&width={$MOD[thumb_width]}&height={$MOD[thumb_height]}',
|
|
pick: '#file-picker',
|
|
accept: {
|
|
title: 'image',
|
|
extensions: 'jpg,jpeg,png,gif',
|
|
mimeTypes: 'image/*'
|
|
},
|
|
resize: false
|
|
});
|
|
fileu.on('fileQueued', function(file) {
|
|
$('#file-progress').html('0%');
|
|
});
|
|
fileu.on('uploadProgress', function(file, percentage) {
|
|
var p = parseInt(percentage * 100);
|
|
if(p >= 100) p = 100;
|
|
$('#file-progress').html(p+'%');
|
|
});
|
|
fileu.on( 'uploadSuccess', function(file, data) {
|
|
if(data.error) {
|
|
Dmsg(data.message, 'thumb');
|
|
} else {
|
|
addAlbum(data.url);
|
|
}
|
|
});
|
|
fileu.on( 'uploadError', function(file, data) {
|
|
Dmsg(data.message, 'thumb');
|
|
});
|
|
fileu.on('uploadFinished', function(file) {
|
|
$('#file-progress').html('');
|
|
if($("#thumbs input[value!='']").length >= album_max) $('#thumbmuti').hide();
|
|
});
|
|
function addAlbum(url) {
|
|
for(var i = 0; i < album_max; i++) {
|
|
if($('#thumb'+i).length) {
|
|
if($('#thumb'+i).val() == '') {
|
|
$('#thumb'+i).val(url);
|
|
$('#showthumb'+i).attr('src', url);
|
|
return;
|
|
}
|
|
} else {
|
|
$('#thumbs').append($('#thumbtpl').html().replace(/-99/g, i));
|
|
$('#thumb'+i).val(url);
|
|
$('#showthumb'+i).attr('src', url);
|
|
return;
|
|
}
|
|
}
|
|
Dmsg('最多上传'+album_max+'张图片', 'thumb');
|
|
$('#thumbmuti').hide();
|
|
}
|
|
$(function(){
|
|
if($("#thumbs input[value!='']").length >= album_max) window.setTimeout(function(){$('#thumbmuti').hide();}, 3000);
|
|
});
|
|
</script>
|
|
</td>
|
|
</tr>
|
|
<!--<tr>
|
|
<td class="tl">宣传视频</td>
|
|
<td class="tr"><input name="post[video]" type="text" id="video" size="70" value="{$video}" onblur="UpdateURL();"/> <span id="video-picker" class="jt">[上传]</span> <span onclick="vs();" class="jt">[预览]</span> <span onclick="Dd('video').value='';vh();$('#video-progress').html('');" class="jt">[删除]</span> <span id="video-progress" class="f_gray"></span> <span id="dvideo" class="f_red"></span>
|
|
<script type="text/javascript">
|
|
$(function(){
|
|
var filev = WebUploader.create({
|
|
auto: true,
|
|
server: UPPath+'?moduleid={$moduleid}&action=webuploader&from=file',
|
|
pick: '#video-picker',
|
|
accept: {
|
|
title: 'video',
|
|
extensions: 'mp4',
|
|
mimeTypes: 'video/*'
|
|
},
|
|
resize: false
|
|
});
|
|
filev.on('fileQueued', function(file) {
|
|
$('#video-progress').html('0%');
|
|
});
|
|
filev.on('uploadProgress', function(file, percentage) {
|
|
var p = parseInt(percentage * 100);
|
|
if(p >= 100) p = 100;
|
|
$('#video-progress').html(p+'%');
|
|
});
|
|
filev.on( 'uploadSuccess', function(file, data) {
|
|
if(data.error) {
|
|
Dmsg(data.message, 'video');
|
|
} else {
|
|
$('#video-progress').html('100%');
|
|
$('#video').val(data.url);
|
|
}
|
|
});
|
|
filev.on( 'uploadError', function(file, data) {
|
|
Dmsg(data.message, 'video');
|
|
});
|
|
filev.on('uploadComplete', function(file) {
|
|
$('#video-progress').html('100%');
|
|
});
|
|
window.setTimeout(function() {
|
|
$('#video-progress').html(' ');
|
|
}, 1000);
|
|
});
|
|
function vs() {
|
|
UpdateURL();
|
|
if(Dd('video').value.length > 5) {
|
|
Ds('v_player');
|
|
Inner('v_play', player(Dd('video').value,400,300,1));
|
|
} else {
|
|
Dmsg('视频地址为空', 'video');
|
|
vh();
|
|
}
|
|
}
|
|
function vh() {Inner('v_play', '');Dh('v_player');}
|
|
function UpdateURL() {
|
|
var str = url2video(Dd('video').value);
|
|
if(str) Dd('video').value = str;
|
|
}
|
|
</script>
|
|
</td>
|
|
</tr>
|
|
<tr id="v_player" style="display:none;">
|
|
<td class="tl">视频预览</td>
|
|
<td><div id="v_play"></div><div style="padding-top:10px;"><a href="javascript:" onclick="vh();" class="t">[关闭预览]</a></div></td>
|
|
</tr>-->
|
|
<tr>
|
|
<td class="tl">主要参数</td>
|
|
<td class="tr">
|
|
<table cellpadding="6" cellspacing="1" bgcolor="#FFFFFF">
|
|
<tr bgcolor="#F7F7F7" align="center">
|
|
<td>参数名称</td>
|
|
<td>参数值</td>
|
|
</tr>
|
|
<tr>
|
|
<td><input name="post[n1]" type="text" size="10" value="{$n1}" id="n1"/></td>
|
|
<td><input name="post[v1]" type="text" size="20" value="{$v1}" id="v1"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td><input name="post[n2]" type="text" size="10" value="{$n2}" id="n2"/></td>
|
|
<td><input name="post[v2]" type="text" size="20" value="{$v2}" id="v2"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td><input name="post[n3]" type="text" size="10" value="{$n3}" id="n3"/></td>
|
|
<td><input name="post[v3]" type="text" size="20" value="{$v3}" id="v3"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="f_gray">例如:规格</td>
|
|
<td class="f_gray">例如:10cm*20cm</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">交易条件</td>
|
|
<td class="tr">
|
|
<table cellpadding="6" cellspacing="1" bgcolor="#FFFFFF">
|
|
<tr bgcolor="#F7F7F7" align="center">
|
|
<td>计量单位</td>
|
|
<td>产品单价</td>
|
|
<td>起订量</td>
|
|
<td>库存</td>
|
|
<td>发货期限</td>
|
|
</tr>
|
|
<tr>
|
|
<td><input name="post[unit]" type="text" size="5" value="{if $unit}{$unit}{else}件{/if}" onblur="if(this.value){Dd('u1').innerHTML=Dd('u2').innerHTML=Dd('u3').innerHTML=this.value;}" id="u0"/><input type="hidden" id="uu" value="件"/></td>
|
|
<td><input name="post[price]" type="text" size="10" value="{$price}"/> {$DT[money_unit]}/<span id="u1">{if $unit}{$unit}{else}件{/if}</span></td>
|
|
<td><input name="post[minamount]" type="text" size="10" value="{$minamount}"/> <span id="u2">{if $unit}{$unit}{else}件{/if}</span></td>
|
|
<td><input name="post[amount]" type="text" size="10" value="{$amount}"/> <span id="u3">{if $unit}{$unit}{else}件{/if}</span></td>
|
|
<td title="自买家付款之日计时"><input name="post[days]" type="text" size="2" value="{$days}"/> 天内</td>
|
|
</tr>
|
|
</table>
|
|
<span class="f_gray"> 建议详细填写交易条件,否则买家无法为您的产品下订单</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tl">详细说明</td>
|
|
<td class="tr f_gray"><textarea name="post[content]" id="content" class="dsn">{$content}</textarea>
|
|
{deditor($moduleid, 'content', $group_editor, '100%', 350)}<br/>
|
|
1、建议您描述以下方面:产品的性能及优点、用途、售后服务、包装等;<br/>
|
|
2、为避免不必要的纠纷,请使用本企业图片;<br/>
|
|
<span id="dcontent" class="f_red"></span>
|
|
</td>
|
|
</tr>
|
|
<!--<tr>
|
|
<td class="tl">过期时间</td>
|
|
<td class="tr f_gray">{dcalendar('post[totime]', $totime, '-', 1)}
|
|
<select onchange="Dd('posttotime').value=this.value;">
|
|
<option value="">快捷选择</option>
|
|
<option value="">长期有效</option>
|
|
<option value="{timetodate($DT_TIME+86400*3, 3)} 23:59:59">3天</option>
|
|
<option value="{timetodate($DT_TIME+86400*7, 3)} 23:59:59">一周</option>
|
|
<option value="{timetodate($DT_TIME+86400*15, 3)} 23:59:59">半月</option>
|
|
<option value="{timetodate($DT_TIME+86400*30, 3)} 23:59:59">一月</option>
|
|
<option value="{timetodate($DT_TIME+86400*182, 3)} 23:59:59">半年</option>
|
|
<option value="{timetodate($DT_TIME+86400*365, 3)} 23:59:59">一年</option>
|
|
</select>
|
|
不选表示长期有效
|
|
<span id="dposttotime" class="f_red"></span></td>
|
|
</tr>-->
|
|
<tr{if !$_userid} style="display:none;"{/if}>
|
|
<td class="tl">我的分类</td>
|
|
<td class="tr"><span id="type_box">{$mycatid_select}</span> <a href="javascript:var type_item='{$module}-{$moduleid}-{$_userid}',type_name='post[mycatid]',type_default='{$L[type_default]}',type_id={$mycatid},type_interval=setInterval('type_reload()',500);Dwidget('type.php?item={$module}&mid={$mid}', '[我的分类]', 1000, 600);" ><img src="{DT_STATIC}file/image/ico-add.png" width="11" height="11" title="管理分类"/></a></td>
|
|
</tr>
|
|
<tr{if !$_userid} style="display:none;"{/if}>
|
|
<td class="tl">店铺推荐</td>
|
|
<td class="tr">
|
|
<input type="radio" name="post[elite]" value="1"{if $elite} checked{/if}/> 是
|
|
|
|
<input type="radio" name="post[elite]" value="0"{if !$elite} checked{/if}/> 否
|
|
</td>
|
|
</tr>
|
|
{if !$_userid}
|
|
{template 'guest_contact', 'chip'}
|
|
{/if}
|
|
|
|
{if $fee_add}
|
|
<tr>
|
|
<td class="tl">发布此信息需消费</td>
|
|
<td class="tr"><span class="f_b f_red">{$fee_add}</span> {$fee_unit}</td>
|
|
</tr>
|
|
{if $fee_currency == 'money'}
|
|
<tr>
|
|
<td class="tl">{$DT[money_name]}余额</td>
|
|
<td class="tr"><span class="f_blue f_b">{$_money}{$fee_unit}</span> <a href="charge.php?action=pay" target="_blank" class="t">[充值]</a></td>
|
|
</tr>
|
|
{else}
|
|
<tr>
|
|
<td class="tl">{$DT[credit_name]}余额</td>
|
|
<td class="tr"><span class="f_blue f_b">{$_credit}{$fee_unit}</span> <a href="credit.php?action=buy" target="_blank" class="t">[购买]</a></td>
|
|
</tr>
|
|
{/if}
|
|
{/if}
|
|
{if $need_password}
|
|
<tr>
|
|
<td class="tl"><span class="f_red">*</span> 支付密码</td>
|
|
<td class="tr">{template 'password', 'chip'} <span id="dpassword" class="f_red"></span></td>
|
|
</tr>
|
|
{/if}
|
|
{if $need_question}
|
|
<tr>
|
|
<td class="tl"><span class="f_red">*</span> 验证问题</td>
|
|
<td class="tr">{template 'question', 'chip'} <span id="danswer" class="f_red"></span></td>
|
|
</tr>
|
|
{/if}
|
|
{if $need_captcha}
|
|
<tr>
|
|
<td class="tl"><span class="f_red">*</span> 验证码</td>
|
|
<td class="tr">{template 'captcha', 'chip'} <span id="dcaptcha" class="f_red"></span></td>
|
|
</tr>
|
|
{/if}
|
|
{if $action=='add'}
|
|
<tr style="display:none;" id="weibo_sync">
|
|
<td class="tl">同步主题</td>
|
|
<td class="tr" id="weibo_show"></td>
|
|
</tr>
|
|
{/if}
|
|
<tr>
|
|
<td class="tl"> </td>
|
|
<td class="tr" height="50"><input type="submit" name="submit" value=" 提 交 " class="btn_g"/> <input type="button" value=" 返 回 " class="btn" onclick="history.back(-1);"/></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
{load('clear.js')}
|
|
{if $action=='add'}
|
|
<script type="text/javascript">s('mid_{$mid}');m('{$action}');</script>
|
|
{else}
|
|
<script type="text/javascript">s('mid_{$mid}');m('s{$status}');</script>
|
|
{/if}
|
|
{else}
|
|
<div class="tt">
|
|
<form action="?">
|
|
<input type="hidden" name="mid" value="{$mid}"/>
|
|
<input type="hidden" name="status" value="{$status}"/>
|
|
{category_select('catid', '行业分类', $catid, $moduleid)}
|
|
{dselect($TYPE, 'typeid', '信息类型', $typeid)}
|
|
<input type="text" size="30" name="kw" value="{$kw}" title="关键词"/>
|
|
{$mycat_select}
|
|
<input type="submit" value=" 搜 索 " class="btn"/>
|
|
<input type="button" value=" 重 置 " class="btn" onclick="Go('?mid={$mid}&status={$status}');"/>
|
|
</form>
|
|
</div>
|
|
<div class="ls">
|
|
<form method="post">
|
|
<table cellpadding="10" cellspacing="0" class="tb">
|
|
<tr>
|
|
<th width="20"><input type="checkbox" onclick="checkall(this.form);"/></th>
|
|
<th width="90">图片</th>
|
|
<th>标题</th>
|
|
<th>行业</th>
|
|
<th width="110">{if $timetype=='add'}添加{else}更新{/if}时间</th>
|
|
{if $MOD[hits]}<th width="50">浏览</th>{/if}
|
|
<th width="80">管理</th>
|
|
</tr>
|
|
{loop $lists $k $v}
|
|
<tr align="center">
|
|
<td><input type="checkbox" name="itemid[]" value="{$v[itemid]}"/></td>
|
|
<td><a href="javascript:_preview('{$v[thumb]}');"><img src="{if $v[thumb]}{$v[thumb]}{else}{DT_SKIN}image/nopic60.gif{/if}" width="60" class="thumb"/></a></td>
|
|
<td align="left" title="{$v[alt]}"><ul><li> {if $v[level]==1}<img src="image/ico_home.gif" title="网站首页推广"/> {/if}{if $v[elite]}<span class="f_red" title="公司主页推荐">[荐]</span> {/if}{if $v[status]==3}<a href="{$v[linkurl]}" target="_blank" class="t">{else}<a href="?mid={$mid}&action=edit&itemid={$v[itemid]}" class="t">{/if}{$v[title]}</a>{if $v[status]==1 && $v[note]} <a href="javascript:" onclick="alert('{$v[note]}');"><img src="image/why.gif" title="未通过原因"/></a>{/if}</li></ul></td>
|
|
<td><a href="{$v[caturl]}" target="_blank">{$v[catname]}</a></td>
|
|
{if $timetype=='add'}
|
|
<td class="f_gray" title="更新时间 {timetodate($v[edittime], 5)}">{timetodate($v[addtime], 5)}</td>
|
|
{else}
|
|
<td class="f_gray" title="添加时间 {timetodate($v[addtime], 5)}">{timetodate($v[edittime], 5)}</td>
|
|
{/if}
|
|
{if $MOD[hits]}<td class="f_gray">{$v[hits]}</td>{/if}
|
|
<td>
|
|
<a href="?mid={$mid}&action=edit&itemid={$v[itemid]}"><img width="16" height="16" src="image/edit.png" title="修改" alt=""/></a>
|
|
{if $MG[copy]} <a href="?mid={$mid}&action=add&itemid={$v[itemid]}"><img width="16" height="16" src="image/new.png" title="复制信息" alt=""/></a>{/if}
|
|
{if $MG[delete]} <a href="?mid={$mid}&action=delete&itemid={$v[itemid]}" onclick="return confirm('确定要删除吗?此操作将不可撤销');"><img width="16" height="16" src="image/delete.png" title="删除" alt=""/></a>{/if}
|
|
</td>
|
|
</tr>
|
|
{/loop}
|
|
</table>
|
|
</div>
|
|
{if $MG[delete] || $timetype!='add'}
|
|
<div class="btns">
|
|
{if $MG[delete]}
|
|
<span class="f_r"><input type="submit" value=" 删除选中 " class="btn_r" onclick="if(confirm('确定要删除选中{$MOD[name]}吗?')){this.form.action='?mid={$mid}&status={$status}&action=delete'}else{return false;}"/></span>
|
|
{/if}
|
|
{if $timetype!='add'}
|
|
<input type="submit" value=" 刷新选中 " class="btn" onclick="this.form.action='?mid={$mid}&status={$status}&action=refresh';"/>
|
|
{if $MOD[credit_refresh]}
|
|
刷新一条信息一次需消费 <strong class="f_red">{$MOD[credit_refresh]}</strong> {$DT[credit_name]},当{$DT[credit_name]}不足时将不可刷新
|
|
{/if}
|
|
{/if}
|
|
</div>
|
|
{/if}
|
|
</form>
|
|
{if $mod_limit || (!$MG[fee_mode] && $MOD[fee_add])}
|
|
<div class="limit">
|
|
{if $mod_limit}
|
|
总共可发 <span class="f_b f_red">{$mod_limit}</span> 条
|
|
当前已发 <span class="f_b">{$limit_used}</span> 条
|
|
还可以发 <span class="f_b f_blue">{$limit_free}</span> 条
|
|
{/if}
|
|
{if !$MG[fee_mode] && $MOD[fee_add]}
|
|
发布信息收费 <span class="f_b f_red">{$MOD[fee_add]}</span> {if $MOD[fee_currency] == 'money'}{$DT[money_unit]}{else}{$DT[credit_unit]}{/if}/条
|
|
可免费发布 <span class="f_b">{if $mod_free_limit<0}无限{else}{$mod_free_limit}{/if}</span> 条
|
|
{/if}
|
|
</div>
|
|
{/if}
|
|
<div class="pages">{$pages}</div>
|
|
<script type="text/javascript">s('mid_{$mid}');m('s{$status}');</script>
|
|
{/if}
|
|
{if $action == 'add' || $action == 'edit'}
|
|
<script type="text/javascript">
|
|
function _p() {
|
|
if(Dd('tag').value) {
|
|
Ds('reccate');
|
|
}
|
|
}
|
|
function check() {
|
|
var l;
|
|
var f;
|
|
f = 'catid_1';
|
|
if(Dd(f).value == 0) {
|
|
Dmsg('请选择所属分类', 'catid', 1);
|
|
return false;
|
|
}
|
|
f = 'title';
|
|
l = Dd(f).value.length;
|
|
if(l < 2 || l > 30) {
|
|
Dmsg('信息标题应为2-30字,当前已输入'+l+'字', f);
|
|
return false;
|
|
}
|
|
{if $MOD[upload_thumb] && $MG[upload]}
|
|
f = 'thumb';
|
|
l = Dd(f).value.length;
|
|
if(l < 5) {
|
|
Dmsg('请上传第一张产品图片', f);
|
|
return false;
|
|
}
|
|
{/if}
|
|
{if !$_userid}
|
|
f = 'company';
|
|
l = Dd(f).value.length;
|
|
if(l < 2) {
|
|
Dmsg('请填写公司名称', f);
|
|
return false;
|
|
}
|
|
if(Dd('areaid_1').value == 0) {
|
|
Dmsg('请选择所在地区', 'areaid');
|
|
return false;
|
|
}
|
|
f = 'truename';
|
|
l = Dd(f).value.length;
|
|
if(l < 2) {
|
|
Dmsg('请填写联系人', f);
|
|
return false;
|
|
}
|
|
f = 'mobile';
|
|
l = Dd(f).value.length;
|
|
if(l < 7) {
|
|
Dmsg('请填写手机', f);
|
|
return false;
|
|
}
|
|
{/if}
|
|
{if $FD}{fields_js()}{/if}
|
|
{if $CP}{property_js()}{/if}
|
|
{if $need_password}
|
|
f = 'password';
|
|
l = Dd(f).value.length;
|
|
if(l < 6) {
|
|
Dmsg('请填写支付密码', f);
|
|
return false;
|
|
}
|
|
{/if}
|
|
{if $need_question}
|
|
f = 'answer';
|
|
if($('#c'+f).html().indexOf('ok.png') == -1) {
|
|
Dmsg('请填写正确的验证问题', f);
|
|
return false;
|
|
}
|
|
{/if}
|
|
{if $need_captcha}
|
|
f = 'captcha';
|
|
if($('#c'+f).html().indexOf('ok.png') == -1) {
|
|
Dmsg('请填写正确的验证码', f);
|
|
return false;
|
|
}
|
|
{/if}
|
|
return true;
|
|
}
|
|
var destoon_oauth = '{$EXT[oauth]}';
|
|
</script>
|
|
{/if}
|
|
{if $action=='add' && strlen($EXT[oauth]) > 1}{load('weibo.js')}{/if}
|
|
{template 'footer', 'member'}
|