<?php /* Smarty version Smarty-3.1.10, created on 2017-01-12 22:02:55
         compiled from "E:\phpStudy\WWW\themes\member\shop.html" */ ?>
<?php /*%%SmartyHeaderCode:20533586e392ec1a2e9-98643255%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '9a9b7c08d5ea6e969af0b63486508a123d083585' => 
    array (
      0 => 'E:\\phpStudy\\WWW\\themes\\member\\shop.html',
      1 => 1484229767,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '20533586e392ec1a2e9-98643255',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.10',
  'unifunc' => 'content_586e392eef7532_82593964',
  'variables' => 
  array (
    'pagename' => 0,
    'action' => 0,
    'shop' => 0,
    'web' => 0,
    'showpage' => 0,
    'cfg' => 0,
    'category_option' => 0,
    'city_option' => 0,
    'do' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_586e392eef7532_82593964')) {function content_586e392eef7532_82593964($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>




            <div class="content">

            	<div class="title"><?php echo $_smarty_tpl->tpl_vars['pagename']->value;?>
</div>

                <div class="body">

            		<?php if ($_smarty_tpl->tpl_vars['action']->value=='list'){?>

					  					<div style="color: #439404; line-height: 23px; padding: 10px;">感谢您对优能分类目录的关注和支持！我们将在5个工作日内进行审核！非常期待您能在提交后把我们的商品加在您的友情链接上，首页或内页不限。 </div>

                      <div style="background: #ffc; border: dashed 1px #f60; color: #f30; margin-top: 6px; margin-bottom:5px; padding: 8px;">

		本站提供商品快速收录服务，当天审核，不让您漫长等待，详情联系客服。</div>

                	  <div id="listbox">



						<table width="100%" border="0" cellspacing="1" cellpadding="0">

							<tr>

								<th>ID</th>

								<th>所属分类</th>

								<th>商品名称</th>

								<th>商品原价 </th>
								<th>商品现价 </th>
								<th>所在平台 </th>
								<th>浏览次数 </th>

								<th>属性状态</th>

								<th>提交时间</th>

								<th>操作选项</th>
								
								<th>开通服务</th>

							</tr>

							<?php  $_smarty_tpl->tpl_vars['web'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['web']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['shop']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['web']->key => $_smarty_tpl->tpl_vars['web']->value){
$_smarty_tpl->tpl_vars['web']->_loop = true;
?>

							<tr>

								<td><?php echo $_smarty_tpl->tpl_vars['web']->value['shop_id'];?>
</td>

								<td><?php echo $_smarty_tpl->tpl_vars['web']->value['cate_name'];?>
</td>

								<td class="textleft"><a href="/item/<?php echo $_smarty_tpl->tpl_vars['web']->value['shop_id'];?>
.html" target="_blank"><?php echo $_smarty_tpl->tpl_vars['web']->value['shop_name'];?>
</a></td>

								
								<td><?php echo $_smarty_tpl->tpl_vars['web']->value['shop_oprice'];?>
</td>
								<td><?php echo $_smarty_tpl->tpl_vars['web']->value['shop_price'];?>
</td>
								<td><?php echo $_smarty_tpl->tpl_vars['web']->value['shop_from'];?>
</td>
								<td><?php echo $_smarty_tpl->tpl_vars['web']->value['shop_views'];?>
</td>

								<td style="color: #FF0000;"><?php echo $_smarty_tpl->tpl_vars['web']->value['shop_status'];?>
</td>

								<td><?php echo $_smarty_tpl->tpl_vars['web']->value['shop_ctime'];?>
</td>

								<td><a href="?mod=shop&act=edit&wid=<?php echo $_smarty_tpl->tpl_vars['web']->value['shop_id'];?>
">修改</a></td>
								
								<td><a href="?mod=pay">开通服务</a></td>

							<?php }
if (!$_smarty_tpl->tpl_vars['web']->_loop) {
?>

							<tr><td colspan="7">您还未提交任何商品！</td></tr>

							<?php } ?>

						</table>

					</div>

        			<div id="showpage" class="clearfix"><?php echo $_smarty_tpl->tpl_vars['showpage']->value;?>
</div>

        			<?php }?>

        

        			<?php if ($_smarty_tpl->tpl_vars['action']->value=='add'||$_smarty_tpl->tpl_vars['action']->value=='edit'){?>

        			<?php if ($_smarty_tpl->tpl_vars['cfg']->value['is_enabled_submit']=='yes'){?>

        			<div id="formbox">

						<form name="myfrom" id="myfrom" method="post" action="?mod=shop">

        				<ul>

        					<li><strong>选择分类：</strong><select name="cate_id"><?php echo $_smarty_tpl->tpl_vars['category_option']->value;?>
</select>请正确选择分类</li>
							
<li><strong>选择分类：</strong><select name="area_id"><?php echo $_smarty_tpl->tpl_vars['city_option']->value;?>
</select>请正确选择分类</li>
       					  <li><strong>商品名称：</strong><input type="text" name="shop_name" id="shop_name" class="ipt" size="50" maxlength="50" value="<?php echo $_smarty_tpl->tpl_vars['shop']->value['shop_name'];?>
" /> 只能填写名称,不要填写关键词.</li>

            				<li><strong>商品地址：</strong><input type="text" name="shop_url" id="shop_url" class="ipt" size="50" maxlength="100" value="<?php echo $_smarty_tpl->tpl_vars['shop']->value['shop_url'];?>
" onblur="checkurl(this.value)" />

            				如:whttp://www.60cms.com/thread-6-1-1.html</li>

            				<li><strong>商品属性：</strong><input type="text" name="shop_tags" id="shop_tags" class="ipt" size="50" maxlength="50" value="<?php echo $_smarty_tpl->tpl_vars['shop']->value['shop_tags'];?>
" onBlur="javascript:this.value=this.value.replace(/，/ig,',');" />如颜色、款式、人群等，多个属性用英文的“,”逗号隔开</li>
							<li><strong>商品图片：</strong>
                                                     <link href="/public/uploadify/uploadify.css" rel="stylesheet" type="text/css" />
        <script src="/public/uploadify/jquery.uploadify.js" type="text/javascript"></script>
        <script src="/public/uploadify/jquery.uploadify.min.js" type="text/javascript"></script>
    
   <script type="text/javascript">
 

$(function() {
    $('#file_upload').uploadify({
	
        'swf'      : '/public/uploadify/uploadify.swf',
        'uploader' : '/public/uploadify/uploadify.php',
        'buttonText' : '上传图片',
		'method'    : 'get',
		'sizeLimit': '512000', 
		'fileExt': '*.jpg;*.gif,*.png', 
		'fileDesc': 'Web Image Files(.JPG,.GIF,.PNG)',
		 'fileDataName':'<?php echo $_smarty_tpl->tpl_vars['shop']->value['shop_name'];?>
',
		'auto'        : true, 
		'multi'        : false,
        'onUploadSuccess' : function(file, data, response) {
            $('#image').attr('src','/uploads/'+data);
			 $('#shop_pic').attr('value',''+data);
            $('#pic').val(data);
        },
    });
});
</script>
    <input name="shop_pic" type="text" class="ipt" id="shop_pic" size="50" maxlength="100" value="<?php echo $_smarty_tpl->tpl_vars['shop']->value['shop_pic'];?>
" />  请上传500K以内图片，大小310*310
	<style>
	.avatar_box{ margin-left:200px; margin-top:15px;}
	</style>
	<div class="avatar_box"> <img id="image" src="/uploads/<?php echo !$_smarty_tpl->tpl_vars['shop']->value['shop_pic'] ? 'nopic.gif' : $_smarty_tpl->tpl_vars['shop']->value['shop_pic'];?>
" width="150" height="150" border="0" />
    <div class="upload_avatar"><input id="file_upload" name="shop_pic" type="file" multiple="true" value="" /></div>
</div></li>
            				<li><strong>推荐理由：</strong><textarea name="shop_intro" id="shop_intro" cols="50" rows="6" class="ipt"><?php echo $_smarty_tpl->tpl_vars['shop']->value['shop_intro'];?>
</textarea>不得超过200个中文字符，包括标点符号</li>
							
							<li><strong>商品详情：</strong><script type="text/javascript">
					var editor;
					KindEditor.ready(function(K) {
						editor = K.create('textarea[name="shop_content"]', {
							resizeType : 1,
							allowPreviewEmoticons : false,
							allowImageUpload : true,
							uploadJson : 'upload.php?act=upload',
							items : [
								'source', '|', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
								'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
								'insertunorderedlist', '|', 'emoticons', 'image', 'link', '|', 'fullscreen']
						});
					});
                    </script>
                    <textarea name="shop_content" id="shop_content" cols="50" rows="6" class="ipt" style="width: 600px; height: 400px; visibility: hidden;"><?php echo $_smarty_tpl->tpl_vars['shop']->value['shop_content'];?>
</textarea> </li>

							
                            <li><strong>商品原价：</strong><input name="shop_oprice" type="text" class="ipt" id="shop_oprice" size="10" maxlength="10" value="<?php echo !$_smarty_tpl->tpl_vars['shop']->value['shop_oprice'] ? '0' : $_smarty_tpl->tpl_vars['shop']->value['shop_oprice'];?>
"  />元</li>

                			<li><strong>商品现价：</strong><input name="shop_price" type="text" class="ipt" id="shop_price" size="10" maxlength="10" value="<?php echo !$_smarty_tpl->tpl_vars['shop']->value['shop_price'] ? '0' : $_smarty_tpl->tpl_vars['shop']->value['shop_price'];?>
"  />元</li>

							<li><strong>所在平台：</strong><input name="shop_from" type="text" class="ipt" id="shop_from" size="10" maxlength="10" value="<?php echo $_smarty_tpl->tpl_vars['shop']->value['shop_from'];?>
"  />如：天猫、京东等</li>

            				<li><strong>&nbsp;</strong><input type="hidden" name="shop_id" id="shop_id" value="<?php echo $_smarty_tpl->tpl_vars['shop']->value['shop_id'];?>
"><input type="hidden" name="do" id="do" value="<?php echo $_smarty_tpl->tpl_vars['do']->value;?>
"><input type="submit" class="btn" value="提 交"> <input type="reset" class="btn" value="重 填"></li>

        				</ul>

        				</form>

    				</div>

        			<?php }else{ ?>

        			<div style="background: #ffc; border: dashed 1px #f30; color: #f00; padding: 20px; text-align: center;"><?php echo $_smarty_tpl->tpl_vars['cfg']->value['submit_close_reason'];?>
</div>

        			<?php }?>

					<?php }?>

                </div>

            </div>

            

<?php echo $_smarty_tpl->getSubTemplate ("footer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
<?php }} ?>