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.
 
 
 
 

240 lines
9.4 KiB

<!doctype html>
<html>
<head>
<meta charset="{DT_CHARSET}"/>
<title>{$head_title}{$DT[seo_delimiter]}{$DT[sitename]}</title>
<link rel="stylesheet" type="text/css" href="{DT_PATH}admin/image/style.css?v={if DT_DEBUG}{DT_TIME}{else}{DT_REFRESH}{/if}"/>
<meta name="robots" content="noindex,nofollow"/>
<script type="text/javascript" src="{DT_STATIC}lang/{DT_LANG}/lang.js?v={if DT_DEBUG}{DT_TIME}{else}{DT_REFRESH}{/if}"></script>
<script type="text/javascript" src="{DT_STATIC}file/script/config.js?v={if DT_DEBUG}{DT_TIME}{else}{DT_REFRESH}{/if}"></script>
<!--[if lte IE 9]><!-->
<script type="text/javascript" src="{DT_STATIC}file/script/jquery-1.5.2.min.js?v={if DT_DEBUG}{DT_TIME}{else}{DT_REFRESH}{/if}"></script>
<!--<![endif]-->
<!--[if (gte IE 10)|!(IE)]><!-->
<script type="text/javascript" src="{DT_STATIC}file/script/jquery-2.1.1.min.js?v={if DT_DEBUG}{DT_TIME}{else}{DT_REFRESH}{/if}"></script>
<!--<![endif]-->
<script type="text/javascript" src="{DT_STATIC}file/script/common.js?v={if DT_DEBUG}{DT_TIME}{else}{DT_REFRESH}{/if}"></script>
<script type="text/javascript" src="{DT_STATIC}file/script/panel.js?v={if DT_DEBUG}{DT_TIME}{else}{DT_REFRESH}{/if}"></script>
<script type="text/javascript" src="{DT_STATIC}file/script/member.js?v={if DT_DEBUG}{DT_TIME}{else}{DT_REFRESH}{/if}"></script>
</head>
<body>
{if $job == 'item'}
<div class="sbox">
<form action="?" id="search">
<input type="hidden" name="action" value="{$action}"/>
<input type="hidden" name="job" value="{$job}"/>
<input type="hidden" name="from" value="{$from}"/>
<input type="hidden" name="mid" value="{$mid}"/>
<input type="hidden" name="username" value="{$username}"/>
<input type="text" size="40" name="kw" id="kw" value="{$kw}" placeholder="关键词" title="请输入关键词"/>&nbsp;
<input type="text" size="10" name="itemid" value="{$itemid}" placeholder="{$MODULE[$mid][name]}ID" title="{$MODULE[$mid][name]}ID">&nbsp;
<input type="submit" value="搜 索" class="btn-g"/>&nbsp;
<input type="button" value="重 置" class="btn" onclick="Go('?action={$action}&job={$job}&mid={$mid}&from={$from}&username={$username}');"/>
</form>
</div>
<table cellspacing="0" class="tb">
<tr>
{if $mid==16 && $from=='relate'}
<th width="70">商品</th>
{else}
<th>ID</th>
<th width="16"></th>
{/if}
{if $mid == 4}
<th>公司</th>
{else}
<th>标题</th>
<th width="120">添加时间</th>
{/if}
<th width="60">选择</th>
</tr>
{loop $lists $k $v}
<tr align="center">
{if $mid==16 && $from=='relate'}
<td><a href="javascript:_preview('{$v[thumb]}');"><img src="{$v[thumb]}" width="60" style="padding:5px;"/></a></td>
{else}
<td>{$v[itemid]}</td>
<td>{if $v[level]}<img src="{DT_PATH}admin/image/level_{$v[level]}.gif" title="{$v[level]}级" alt=""/>{/if}</td>
{/if}
<td align="left"><a href="{$v[linkurl]}" target="_blank">{$v[title]}</a>{if $v[thumb]} <a href="javascript:_preview('{$v[thumb]}');"><img src="{DT_PATH}admin/image/img.gif" width="10" height="10" title="标题图,点击预览" alt=""/></a>{/if}</td>
{if $mid > 4}
<td>{$v[adddate]}</td>
{/if}
<td class="jt" onclick="S('{$v[itemid]}','{$v[alt]}','{$v[linkurl]}','{$v[thumb]}','{$v[level]}','{$v[style]}');">选择
<div class="dsn">
<div id="introduce_{$v[itemid]}">{$v[introduce]}</div>
</div>
</td>
</tr>
{/loop}
</table>
<div class="pages">{$pages}</div>
<script type="text/javascript">
function S(itemid, title, linkurl, thumb, introduce, level, style) {
try {
{if $from == 'special'}
parent.Dd('tid').value=itemid;
parent.Dd('mid').value={$mid};
parent.Dd('title').value=title;
parent.Dd('linkurl').value=linkurl;
parent.Dd('thumb').value=thumb;
parent.Dd('introduce').value=Dd('introduce_'+itemid).innerHTML;
parent.color_select(style);
parent.$('#level').val(level);
{elseif $from == 'relate'}
parent.Dd('id').value=itemid;
parent.Dd('dform_add').submit();
{else}
parent.Dd('key_id').value=itemid;
{/if}
} catch(e) {}
try {parent.cDialog();} catch(e) {}
}
Dd('kw').focus();
</script>
<br/>
{elseif $job == 'stock'}
<div class="sbox">
<form action="?" id="search">
<input type="hidden" name="action" value="{$action}"/>
<input type="hidden" name="job" value="{$job}"/>
<input type="hidden" name="from" value="{$from}"/>
<input type="hidden" name="mid" value="{$mid}"/>
<input type="hidden" name="key" value="{$key}"/>
<span class="f_r">
<input type="button" value="库存管理" class="btn-b" onclick="window.open('{$MODULE[2][linkurl]}stock.php');"/></span>
<input type="text" size="50" name="kw" id="kw" value="{$kw}" placeholder="关键词" title="请输入关键词"/>&nbsp;
<input type="text" size="30" name="skuid" value="{$skuid}" placeholder="条形编码" title="条形编码"/>&nbsp;
<input type="submit" value="搜 索" class="btn-g"/>&nbsp;
<input type="button" value="重 置" class="btn" onclick="Go('?action={$action}&job={$job}&mid={$mid}&from={$from}&key={$key}');"/>
</form>
</div>
<table cellspacing="0" class="tb ls">
<tr>
<th width="90">图片</th>
<th>商品</th>
<th>价格</th>
<th>单位</th>
<th>库存</th>
<th>品牌</th>
<th>条形编码</th>
<th>仓储货位</th>
<th width="60">选择</th>
</tr>
{loop $lists $k $v}
<tr align="center" onclick="S('{$v[itemid]}','{$v[alt]}','{$v[thumb]}','{$v[price]}','{$v[unit]}','{$v[amount]}','{$v[skuid]}','{$v[brand]}');" class="c_p" title="点击选择">
<td><img src="{if $v[thumb]}{$v[thumb]}{else}{DT_SKIN}image/nopic60.gif{/if}" width="60" class="thumb"/></td>
<td align="left">&nbsp;<span title="更新时间:{$v[editdate]}&#10;添加时间:{$v[adddate]}">{$v[title]}</span></td>
<td title="进价: {$v[cost]}&#10;利润: {$v[profit]}">{$v[price]}</td>
<td>{$v[unit]}</td>
<td>{$v[amount]}</td>
<td>{$v[brand]}</td>
<td>{$v[skuid]}</td>
<td>{$v[location]}</td>
<td class="jt">选择</td>
</tr>
{/loop}
</table>
<div class="pages">{$pages}</div>
<script type="text/javascript">
function S(itemid,title,thumb, price, unit, amount, skuid, brand) {
try {
{if $key == 'skuid'}
parent.Dd('skuid').value=skuid;
parent.addAlbum(thumb);
if(parent.Dd('amount').value.length<1) parent.Dd('amount').value=amount;
if(parent.Dd('unit').value.length<1) parent.Dd('unit').value=unit;
if(parent.Dd('price').value.length<1) parent.Dd('price').value=price;
if(parent.Dd('p1').value.length<1) parent.Dd('p1').value=price;
if(parent.Dd('title').value.length<1) parent.Dd('title').value=title;
if(parent.Dd('brand').value.length<1) parent.Dd('brand').value=brand;
if(parent.EditorLen() < 5) parent.stock_content(itemid);
{else}
parent.Dd('stockid-{$key}').value=itemid;
parent.Dd('thumb-{$key}').src=thumb;
parent.Dd('price-{$key}').innerHTML=price;
parent.Dd('amount-{$key}').innerHTML=amount;
parent.Dd('skuid-{$key}').innerHTML=skuid;
{if $key == '0-0-0'}
parent.Dd('amount').value=amount;
parent.Dd('unit').value=unit;
parent.Dd('price').value=price;
parent.Dd('p1').value=price;
if(parent.Dd('title').value.length<1) parent.Dd('title').value=title;
if(parent.Dd('brand').value.length<1) parent.Dd('brand').value=brand;
if(parent.EditorLen() < 5) parent.stock_content(itemid);
{/if}
{/if}
} catch(e) {}
try {parent.cDialog();} catch(e) {}
}
Dd('kw').focus();
</script>
<br/>
{else}
{if $mid}
<div class="sbox">
<form action="?" id="search">
<input type="hidden" name="mid" value="{$mid}"/>
<input type="hidden" name="action" value="{$action}"/>
<input type="hidden" name="job" value="{$job}"/>
<input type="hidden" name="from" value="{$from}"/>
<input type="hidden" name="fid" value="{$fid}"/>
<input type="text" size="60" name="kw" id="kw" value="{$kw}" title="关键词"/>&nbsp;
<input type="submit" value="搜 索" class="btn-g"/>&nbsp;
<input type="button" value="返 回" class="btn" onclick="Go('?action={$action}&job={$job}&from={$from}&fid={$fid}');"/>&nbsp;
<input type="button" value="上 传" class="btn" onclick="window.open('{$DT[file_my]}?mid=12&action=add');"/>&nbsp;
<input type="button" value="关 闭" class="btn" onclick="{if $from == 'album'}window.parent.cDialog();{else}window.close();{/if}"/>
</form>
</div>
{/if}
<style tyle="text/css">
.photo {width:115px;height:130px;overflow:hidden;float:left;text-align:center;padding:10px;}
.photo_img {width:100px;height:100px;overflow:hidden;padding:3px;margin:0 auto 8px auto;background:#FFFFFF;border:#CCCCCC 1px solid;cursor:pointer;}
</style>
{if $itemid || $DT['uploadlog']}
<script type="text/javascript">
function S(t, m, l) {
try {
{if $from == 'album'}
window.parent.getAlbum(t, '{$fid}');
window.parent.cDialog();
{else}
window.opener.SetUrl(l);window.opener.GetE("frmUpload").reset();
window.close();
{/if}
} catch(e) {}
}
</script>
<div>
{if $lists}
{loop $lists $k $v}
<div class="photo">
<div class="photo_img"><img src="{$v[thumb]}" width="100" title="{$v[introduce]}" onclick="S('{$v[thumb]}','{$v[middle]}','{$v[large]}');"/></div>
<div><a href="{$v[large]}" target="_blank">{$v[width]} x {$v[height]}</a></div>
</div>
{/loop}
<div class="c_b"></div>
{else}
<br/><br/><br/><center class="f_b">抱歉,您还没有上传过任何图片!</center><br/><br/><br/>
{/if}
</div>
{else}
<div>
{if $lists}
{loop $lists $k $v}
<div class="photo">
<a href="?itemid={$v[itemid]}&from={$from}&fid={$fid}"><img src="{$v[thumb]}" width="120" title="{$v[title]}"/></a>
<span class="f_gray">{$v[items]} 张图片</span>
</div>
{/loop}
<div class="c_b"></div>
</div>
{else}
<br/><br/><br/><center class="f_b">您还没有创建{$MODULE[$mid][name]},<a href="{$DT[file_my]}?mid=12&action=add" target="_blank" class="t">点击这里立即创建</a></center><br/><br/><br/>
{/if}
{/if}
{if $pages}<div class="pages">{$pages}</div>{/if}
{/if}
</body>
</html>