コード例 #1
0
 public function index()
 {
     $sort = input("request.sort", 'trim', 'ordid');
     $order = input("request.order", 'trim', 'ASC');
     $tree = new \Common\ORG\Tree();
     $tree->icon = array('│ ', '├─ ', '└─ ');
     $tree->nbsp = '   ';
     $result = $this->_mod->order($sort . ' ' . $order)->select();
     $array = array();
     foreach ($result as $r) {
         $r['str_img'] = $r['img'] ? '<div class="img_border"><img src="' . attach($r['img'], 'article_cate') . '" width="26" height="26" class="J_preview" data-bimg="' . attach($r['img'], 'article_cate') . '"/></div>' : '';
         $r['str_status'] = '<img data-tdtype="toggle" data-id="' . $r['id'] . '" data-field="status" data-value="' . $r['status'] . '" src="__STATIC__/images/admin/toggle_' . ($r['status'] == 0 ? 'disabled' : 'enabled') . '.gif" />';
         $r['str_manage'] = '<a href="javascript:;" class="J_showdialog" data-uri="' . U('article_cate/add', array('pid' => $r['id'])) . '" data-title="' . L('add_article_cate') . '" data-id="add" data-width="500" data-height="360">' . L('add_article_subcate') . '</a> |
                             <a href="javascript:;" class="J_showdialog" data-uri="' . U('article_cate/edit', array('id' => $r['id'])) . '" data-title="' . L('edit') . ' - ' . $r['name'] . '" data-id="edit" data-width="500" data-height="360">' . L('edit') . '</a> |
                             <a href="javascript:;" data-acttype="ajax" class="J_confirmurl" data-uri="' . U('article_cate/delete', array('id' => $r['id'])) . '" data-msg="' . sprintf(L('confirm_delete_one'), $r['name']) . '">' . L('delete') . '</a>';
         $r['parentid_node'] = $r['pid'] ? ' class="child-of-node-' . $r['pid'] . '"' : '';
         $r['cate_type'] = $r['type'] ? '<span class="blue">' . L('article_cate_type_' . $r['type']) . '</span>' : L('article_cate_type_' . $r['type']);
         $array[] = $r;
     }
     $str = "<tr id='node-\$id' \$parentid_node>\n                <td align='center'><input type='checkbox' value='\$id' class='J_checkitem'></td>\n                <td>\$spacer<span data-tdtype='edit' data-field='name' data-id='\$id' class='tdedit'>\$name</span></td>\n                <td align='center'>\$id</td>\n                <td align='center'>\$cate_type</td>\n                <td align='center'>\$str_img</td>\n                <td align='center'><span data-tdtype='edit' data-field='ordid' data-id='\$id' class='tdedit'>\$ordid</span></td>\n\n                <td align='center'>\$str_status</td>\n                <td align='center'>\$str_manage</td>\n                </tr>";
     $tree->init($array);
     $list = $tree->get_tree(0, $str);
     $this->assign('list', $list);
     //bigmenu (标题,地址,弹窗ID,宽,高)
     $big_menu = array('title' => L('add_article_cate'), 'iframe' => U('article_cate/add'), 'id' => 'add', 'width' => '500', 'height' => '360');
     $this->assign('big_menu', $big_menu);
     $this->assign('list_table', true);
     $this->display();
 }
コード例 #2
0
 public function cate_url()
 {
     $sort = $this->_get("sort", 'trim', 'ordid');
     $order = $this->_get("order", 'trim', 'ASC');
     $tree = new Tree();
     $tree->icon = array('│ ', '├─ ', '└─ ');
     $tree->nbsp = '&nbsp;&nbsp;&nbsp;';
     $result = $this->_mod->order($sort . ' ' . $order)->where("token ='" . session('token') . "'")->select();
     $array = array();
     foreach ($result as $r) {
         $r['str_img'] = $r['img'] ? '<span class="img_border"><img src="' . attach($r['img'], '' . session('token') . '/item_cate') . '" style="width:26px; height:26px;" class="J_preview" data-bimg="' . attach($r['img'], '' . session('token') . '/item_cate') . '" /></span>' : '';
         $r['str_status'] = '<img data-tdtype="toggle" data-id="' . $r['id'] . '" data-field="status" data-value="' . $r['status'] . '" src="__STATIC__/images/admin/toggle_' . ($r['status'] == 0 ? 'disabled' : 'enabled') . '.gif" />';
         $r['str_index'] = '<img data-tdtype="toggle" data-id="' . $r['id'] . '" data-field="is_index" data-value="' . $r['is_index'] . '" src="__STATIC__/images/admin/toggle_' . ($r['is_index'] == 0 ? 'disabled' : 'enabled') . '.gif" />';
         $r['str_type'] = $r['type'] ? '<span class="gray">' . L('item_cate_type_tag') . '</span>' : L('item_cate_type_cat');
         // <a href="'.U('item_cate/tag_list',array('cate_id'=>$r['id'])).'">'.L('tag').'</a> |
         $r['parentid_node'] = $r['pid'] ? ' class="child-of-node-' . $r['pid'] . '"' : '';
         $array[] = $r;
     }
     $url = 'http://' . $_SERVER['HTTP_HOST'] . '/index.php?token=' . session('token') . '&m=book&a=cate&cateid=';
     $str = "<tr id='node-\$id' \$parentid_node>\n                <td align='center' style='display:none;'><input type='checkbox' value='\$id' class='J_checkitem'></td>\n                <td align='left' style='display:none;'>\$id</td>\n                <td>\$spacer<span style='color:\$fcolor'>\$name</span></td>\n                <td align='left'>" . $url . "\$id</td>\n\n                </tr>";
     $tree->init($array);
     $list = $tree->get_tree(0, $str);
     $this->assign('list', $list);
     //bigmenu (标题,地址,弹窗ID,宽,高)
     $this->assign('list_table', true);
     $this->display();
 }
コード例 #3
0
 public function index()
 {
     $sort = $this->_get("sort", 'trim', 'ordid');
     $order = $this->_get("order", 'trim', 'ASC');
     $tree = new Tree();
     $tree->icon = array('│ ', '├─ ', '└─ ');
     $tree->nbsp = '&nbsp;&nbsp;&nbsp;';
     $result = $this->_mod->order($sort . ' ' . $order)->where(array('tokenTall' => $this->getTokenTall()))->select();
     $array = array();
     foreach ($result as $r) {
         $r['str_img'] = $r['img'] ? '<span class="img_border"><img src="' . attach($r['img'], 'item_cate') . '" style="width:26px; height:26px;" class="J_preview" data-bimg="' . attach($r['img'], 'item_cate') . '" /></span>' : '';
         $r['str_status'] = '<img data-tdtype="toggle" data-id="' . $r['id'] . '" data-field="status" data-value="' . $r['status'] . '" src="__STATIC__/images/admin/toggle_' . ($r['status'] == 0 ? 'disabled' : 'enabled') . '.gif" />';
         $r['str_index'] = '<img data-tdtype="toggle" data-id="' . $r['id'] . '" data-field="is_index" data-value="' . $r['is_index'] . '" src="__STATIC__/images/admin/toggle_' . ($r['is_index'] == 0 ? 'disabled' : 'enabled') . '.gif" />';
         $r['str_type'] = $r['type'] ? '<span class="gray">' . L('item_cate_type_tag') . '</span>' : L('item_cate_type_cat');
         $r['str_manage'] = '<a href="javascript:;" class="J_showdialog" data-uri="' . U('item_cate/add', array('pid' => $r['id'])) . '" data-title="' . L('add_item_cate') . '" data-id="add" data-width="520" data-height="360">' . L('add_item_subcate') . '</a> |
                             <a href="javascript:;" class="J_showdialog" data-uri="' . U('item_cate/edit', array('id' => $r['id'])) . '" data-title="' . L('edit') . ' - ' . $r['name'] . '" data-id="edit" data-width="520" data-height="360">' . L('edit') . '</a> |
                             <a href="javascript:;" class="J_confirmurl" data-acttype="ajax" data-uri="' . U('item_cate/delete', array('id' => $r['id'])) . '" data-msg="' . sprintf(L('confirm_delete_one'), $r['name']) . '">' . L('delete') . '</a>';
         $r['parentid_node'] = $r['pid'] ? ' class="child-of-node-' . $r['pid'] . '"' : '';
         $r['is_allcate'] = $r['name'] == '全部商品' ? 'allcate' : 'cate&cid=' . $r['id'];
         $array[] = $r;
     }
     $str = "<tr id='node-\$id' \$parentid_node>\n                <td align='center'><input type='checkbox' value='\$id' class='J_checkitem'></td>\n                <td align='center'>\$id</td>\n                <td>\$spacer<span data-tdtype='view' data-field='name' data-id='\$id' class='tdview'  style='color:\$fcolor'>\$name</span></td>\n                <td align='left'>" . $_SERVER['HTTP_HOST'] . "/weTall/index.php?m=book&a=\$is_allcate&tokenTall=" . $this->getTokenTall() . "</td>\n        \t\t<td align='center'>\$str_img</td>\n                <td align='center'>\$str_type</td>\n                <td align='center'><span data-tdtype='view' data-field='ordid' data-id='\$id' class='tdview'>\$ordid</span></td>\n                <td align='center'>\$str_index</td>\n                <td align='center'>\$str_status</td>\n                <td align='center'>\$str_manage</td>\n                </tr>";
     $tree->init($array);
     $list = $tree->get_tree(0, $str);
     $this->assign('list', $list);
     //bigmenu (标题,地址,弹窗ID,宽,高)
     $big_menu = array('title' => L('add_item_cate'), 'iframe' => U('item_cate/add'), 'id' => 'add', 'width' => '520', 'height' => '360');
     $this->assign('big_menu', $big_menu);
     $this->assign('list_table', true);
     $this->display();
 }
コード例 #4
0
ファイル: mallAction.class.php プロジェクト: kid2682/SMZDM
 public function _before_drop($ids)
 {
     foreach ($ids as $val) {
         if ($info = M(MODULE_NAME)->where(array('id' => $val))->find()) {
             @unlink(attach($info['img'], MODULE_NAME, true));
         }
     }
 }
コード例 #5
0
ファイル: BaseModel.class.php プロジェクト: hello7921/haorizi
 function parse($info)
 {
     foreach ($this->attach_fields as $val) {
         if (array_key_exists($val, $info)) {
             $info['_' . $val] = attach($info[$val], $this->name, true);
         }
     }
     foreach ($this->editor_fields as $val) {
         if (array_key_exists($val, $info)) {
             $info[$val] = parse_editor_info($info[$val]);
         }
     }
     return $info;
 }
コード例 #6
0
 public function index()
 {
     $sort = $this->_get("sort", 'trim', 'ordid');
     $order = $this->_get("order", 'trim', 'ASC');
     $tree = new Tree();
     $tree->icon = array('│ ', '├─ ', '└─ ');
     $tree->nbsp = '&nbsp;&nbsp;&nbsp;';
     $result = M('item_cate')->order($sort . ' ' . $order)->select();
     $map = array();
     $UserDB = D('item_cate');
     $count = $UserDB->where($map)->count();
     $Page = new Page($count, 1808);
     // 实例化分页类 传入总记录数
     // 进行分页数据查询 注意page方法的参数的前面部分是当前的页数使用 $_GET[p]获取
     $nowPage = isset($_GET['p']) ? $_GET['p'] : 1;
     $show = $Page->show();
     // 分页显示输出
     $result = $UserDB->where($map)->order('ordid ASC')->limit($Page->firstRow . ',' . $Page->listRows)->select();
     $this->assign('page', $show);
     // 赋值分页输出
     //var_dump($result);die();
     $array = array();
     foreach ($result as $r) {
         $r['str_img'] = $r['img'] ? '<span class="img_border"><img src="' . attach($r['img'], 'item_cate') . '" style="width:26px; height:26px;" class="J_preview" data-bimg="' . attach($r['img'], 'item_cate') . '" /></span>' : '';
         $r['str_status'] = '<img data-tdtype="toggle" data-id="' . $r['id'] . '" data-field="status" data-value="' . $r['status'] . '" src="__ROOT__/weTall/static/images/admin/toggle_' . ($r['status'] == 0 ? 'disabled' : 'enabled') . '.gif" />';
         $r['str_index'] = '<img data-tdtype="toggle" data-id="' . $r['id'] . '" data-field="is_index" data-value="' . $r['is_index'] . '" src="__ROOT__/weTall/static/images/admin/toggle_' . ($r['is_index'] == 0 ? 'disabled' : 'enabled') . '.gif" />';
         $r['str_type'] = $r['type'] ? '<span class="gray">标签分类</span>' : "商品分类";
         $r['str_manage'] = '<a href="javascript:;" class="J_showdialog" data-uri="/weTall/index.php?g=Admin&m=item_cate&a=add&pid=' . $r['id'] . '" data-title="添加子分类" data-id="add" data-width="520" data-height="360">' . "添加子分类" . '</a> |
                         
                             <a href="javascript:;" class="J_showdialog" data-uri="/weTall/index.php?g=Admin&m=item_cate&a=edit&id=' . $r['id'] . '" data-title="编辑 - ' . $r['name'] . '" data-id="edit" data-width="520" data-height="360">' . "编辑" . '</a> |
                             <a href="javascript:;" class="J_confirmurl" data-acttype="ajax" data-uri="/weTall/index.php?g=Admin&m=item_cate&a=delete&id=' . $r['id'] . '" data-msg="' . sprintf("确定删除吗?", $r['name']) . '">' . "删除" . '</a>';
         // <a href="'.U('item_cate/tag_list',array('cate_id'=>$r['id'])).'">'.L('tag').'</a> |
         $r['parentid_node'] = $r['pid'] ? ' class="child-of-node-' . $r['pid'] . '"' : '';
         $array[] = $r;
     }
     // var_dump($array);die();
     $str = "<tr id='node-\$id' \$parentid_node>\r\n                <td align='center'><input type='checkbox' value='\$id' class='J_checkitem'></td>\r\n                <td align='center'>\$id</td>\r\n                <td>\$spacer<span data-tdtype='edit' data-field='name' data-id='\$id' class='tdedit'  style='color:\$fcolor'>\$name</span></td>\r\n                <td align='center'>\$str_img</td>\r\n                <td align='center'>\$str_type</td>\r\n                <td align='center'><span data-tdtype='edit' data-field='ordid' data-id='\$id' class='tdedit'>\$ordid</span></td>\r\n                <td align='center'>\$str_index</td>\r\n                <td align='center'>\$str_status</td>\r\n                <td align='center'>\$str_manage</td>\r\n                </tr>";
     //$this->show($str);
     $tree->init($array);
     $list = $tree->get_tree(0, $str);
     $this->assign('list', $list);
     //bigmenu (标题,地址,弹窗ID,宽,高)
     $big_menu = array('title' => L('add_item_cate'), 'iframe' => U('item_cate/add'), 'id' => 'add', 'width' => '520', 'height' => '360');
     $this->assign('big_menu', $big_menu);
     $this->assign('list_table', true);
     $this->display();
 }
コード例 #7
0
?>
 :</th>
            <td>
                <input type="text" name="img" id="J_img" class="input-text fl mr10" size="30" value="<?php 
echo $info["img"];
?>
">
                <div id="J_upload_img" class="upload_btn"><span><?php 
echo L('upload');
?>
</span></div>
                <?php 
if (!empty($info['img'])) {
    ?>
<span class="attachment_icon J_attachment_icon" file-type="image" file-rel="<?php 
    echo attach($info['img'], 'item_cate');
    ?>
"><img src="/Public/images/filetype/image_s.gif" /></span><?php 
}
?>
</td>
        </tr>
        <tr>
            <th><?php 
echo L('item_cate_type');
?>
 :</th>
            <td>
                <label><input type="radio" name="type" value="0" <?php 
if ($info["type"] == 0) {
    ?>
コード例 #8
0
    $__LIST__ = $img_list;
    if (count($__LIST__) == 0) {
        echo "";
    } else {
        foreach ($__LIST__ as $key => $val) {
            $mod = $i % 2;
            ++$i;
            ?>
<li class="album_<?php 
            echo $val['id'];
            ?>
"><a href="javascript:void(0)" onclick="del_album(<?php 
            echo $val['id'];
            ?>
);"><img src="__STATIC__/css/admin/bgimg/tv-collapsable.gif" /></a><a><img src="<?php 
            echo attach(get_thumb($val['url'], '_b'), 'item');
            ?>
" style="width:80px;height:60px; border:solid 1px #000; "/></a></li><?php 
        }
    }
} else {
    echo "";
}
?>
</ul><div class="cb"></div><table width="100%" cellpadding="2" cellspacing="1" class="table_form" id="first_upload_file"><tbody class="uplode_file"><tr><th width="100" align="left"><a href="javascript:void(0);" class="blue" onclick="add_file();"><img src="__STATIC__/css/admin/bgimg/tv-expandable.gif" /></a>上传文件 :</th><td><input type="file" name="imgs[]"></td></tr></tbody></table></div><div class="content_list pad_10 hidden"><table width="100%" cellpadding="2" cellspacing="1" class="table_form"><tr><th width="120"><?php 
echo L('seo_title');
?>
 :</th><td><input type="text" name="seo_title" class="input-text" size="60" value="<?php 
echo $info["seo_title"];
?>
"></td></tr><tr><th><?php 
コード例 #9
0
        $__LIST__ = $item;
        if (count($__LIST__) == 0) {
            echo "";
        } else {
            foreach ($__LIST__ as $key => $vo) {
                $mod = $i % 2;
                ++$i;
                ?>
<li id="cart_item_<?php 
                echo $vo["id"];
                ?>
"><p class="goods_info"><span class="img"><a href="<?php 
                echo U('item/index', array('id' => $vo['id']));
                ?>
" ><img src="<?php 
                echo attach(get_thumb($vo['img'], '_m'), $_SESSION['user_token'] . '/item');
                ?>
" height="80" width="80"></a></span><span class="tit"><a href="<?php 
                echo U('item/index', array('id' => $vo['id']));
                ?>
" ><?php 
                echo $vo["name"];
                echo $vo["spec_1"];
                echo $vo["spec_2"];
                ?>
</a><br><span>价格:</span><span class="price1">¥<?php 
                echo $vo["price"];
                ?>
</span><br><span>数量:</span><input type ="hidden" id="spec_id_<?php 
                echo $vo["id"];
                ?>
コード例 #10
0
ファイル: jiekouapi.php プロジェクト: hun-tun/CAPUBBS
     news($con, $token);
 } else {
     if ($ask == "tidinfo") {
         tidinfo($con, $bid, $tid);
     } else {
         if ($ask == "recentpost") {
             recentpost($con, $view);
         } else {
             if ($ask == "recentreply") {
                 recentreply($con, $view);
             } else {
                 if ($ask == "rights") {
                     rights($con, $bid, $token);
                 } else {
                     if ($ask == "attach") {
                         attach($con, $token, $path, $filename, $price, $auth);
                     } else {
                         if ($ask == "attachdl") {
                             attachdl($con, $token, $id);
                         } else {
                             if ($ask == "attachinfo") {
                                 attachinfo($con, $id, $token);
                             } else {
                                 if ($ask == "unusedattachinfo") {
                                     unusedattachinfo($con, $token);
                                 } else {
                                     if ($ask == "delattach") {
                                         delattach($con, $token, $id);
                                     } else {
                                         if ($ask == "editpreview") {
                                             editpreview($con, $token, $bid, $tid, $pid);
コード例 #11
0
<?php if (!defined('THINK_PATH')) exit();?><!--编辑栏目--><div class="dialog_content"><form id="info_form" action="<?php echo u('item_cate/edit');?>" method="post"><table width="100%" class="table_form"><tr><th width="100"><?php echo L('item_cate_parent');?> :</th><td><select class="J_cate_select mr10" data-pid="0" data-uri="<?php echo U('item_cate/ajax_getchilds');?>" data-selected="<?php echo ($info["spid"]); ?>"></select><input type="hidden" name="pid" id="J_cate_id" /></td></tr><tr><th><?php echo L('item_cate_name');?> :</th><td><input type="text" name="name" id="J_name" class="input-text" value="<?php echo ($info["name"]); ?>" style="color:<?php echo ($info["fcolor"]); ?>" size="30"><input type="hidden" value="" name="fcolor" id="J_color"><a href="javascript:;" class="color_picker_btn"><img class="J_color_picker" data-it="J_name" data-ic="J_color" src="__STATIC__/images/color.png"></a></td></tr><tr><th><?php echo L('item_cate_img');?> :</th><td><input type="text" name="img" id="J_img" class="input-text fl mr10" size="30" value="<?php echo ($info["img"]); ?>"><div id="J_upload_img" class="upload_btn"><span><?php echo L('upload');?></span></div><?php if(!empty($info['img'])): ?><span class="attachment_icon J_attachment_icon" file-type="image" file-rel="<?php echo attach($info['img'], 'item_cate');?>"><img src="__STATIC__/images/filetype/image_s.gif" /></span><?php endif; ?></td></tr><tr><th><?php echo L('item_cate_type');?> :</th><td><label><input type="radio" name="type" value="0" <?php if($info["type"] == 0): ?>checked<?php endif; ?>><?php echo L('item_cate_type_cat');?></label>&nbsp;&nbsp;
              <!--  <label><input type="radio" name="type" value="1" <?php if($info["type"] == 1): ?>checked<?php endif; ?>><?php echo L('item_cate_type_tag');?></label>--></td></tr><tr><th>首页显示 :</th><td><label><input type="radio" name="is_index" value="0" <?php if($info["is_index"] == 0): ?>checked<?php endif; ?>> 不显示</label>&nbsp;&nbsp;
                <label><input type="radio" name="is_index" value="1" <?php if($info["is_index"] == 1): ?>checked<?php endif; ?>> 显示</label></td></tr><tr><th>审核状态 :</th><td><label><input type="radio" name="status" value="0" <?php if($info["status"] == 0): ?>checked<?php endif; ?>> 未审核</label>&nbsp;&nbsp;
				<label><input type="radio" name="status" value="1" <?php if($info["status"] == 1): ?>checked<?php endif; ?>> 已审核</label></td></tr><!--	<tr><th><?php echo L('seo_title');?> :</th><td><input type="text" name="seo_title" class="input-text" value="<?php echo ($info["seo_title"]); ?>" style="width:300px;"></td></tr><tr><th><?php echo L('seo_keys');?> :</th><td><input type="text" name="seo_keys" class="input-text" value="<?php echo ($info["seo_keys"]); ?>" style="width:300px;"></td></tr><tr><th><?php echo L('seo_desc');?> :</th><td><textarea name="seo_desc" style="width:295px; height:50px;"><?php echo ($info["seo_desc"]); ?></textarea></td></tr>--></table><input type="hidden" name="id" value="<?php echo ($info["id"]); ?>" /></form></div><script src="__STATIC__/js/jquery/plugins/colorpicker.js"></script><script src="__STATIC__/js/fileuploader.js"></script><script>var check_name_url = "<?php echo U('item_cate/ajax_check_name', array('id'=>$info['id']));?>";
$(function(){
	$.formValidator.initConfig({formid:"info_form",autotip:true});
	$("#J_name").formValidator({onshow:lang.please_input+lang.item_cate_name,onfocus:lang.please_input+lang.item_cate_name}).inputValidator({min:1,onerror:lang.please_input+lang.item_cate_name}).defaultPassed();
	
	$('#info_form').ajaxForm({success:complate,dataType:'json'});
	function complate(result){
		if(result.status == 1){
			$.dialog.get(result.dialog).close();
            $.pinphp.tip({content:result.msg});
            window.location.reload();
		} else {
			$.pinphp.tip({content:result.msg, icon:'alert'});
		}
	}
	$('.J_cate_select').cate_select();
	
	//颜色选择器
	$('.J_color_picker').colorpicker();
	
	//上传图片
    var uploader = new qq.FileUploaderBasic({
    	allowedExtensions: ['jpg','gif','jpeg','png','bmp','pdg'],
        button: document.getElementById('J_upload_img'),
        multiple: false,
        action: "<?php echo U('item_cate/ajax_upload_img');?>",
        inputName: 'img',
コード例 #12
0
 private function imageUploader($attr)
 {
     $s = '';
     if (!defined('TAG_INIT_IMAGE')) {
         $s = '
             <script type="text/javascript">
                 function showImageDialog(elm, opts) {
                     require(["util"], function(util){
                         var btn = $(elm);
                         var ipt = btn.parent().prev();
                         var val = ipt.val();
                         var img = ipt.parent().next().children();
                         util.image(val, function(url){
                             img.get(0).src = url.url;
                             ipt.val(url.filename);
                         }, opts);
                     });
                 }
             </script>';
         define('TAG_INIT_IMAGE', true);
     }
     if (empty($attr['default'])) {
         $attr['default'] = __SITE__ . 'w/static/img/no-image.jpg';
     }
     $options = array();
     $options['width'] = $attr['width'];
     if (empty($options['width'])) {
         $options['width'] = 800;
     }
     if (empty($attr['title'])) {
         $attr['title'] = '选择图片';
     }
     $s .= '
         <div class="input-group">
             <input type="text" name="' . $attr['name'] . '" value="' . $attr['value'] . '" class="form-control" autocomplete="off">
             <span class="input-group-btn">
                 <button class="btn btn-default" type="button" onclick="showImageDialog(this, \'' . base64_encode(serialize($options)) . '\');">' . $attr['title'] . '</button>
             </span>
         </div>
         <div class="input-group" style="margin-top:.5em;">
             <img src="' . attach($attr['value']) . '" onerror="this.src=\'' . $attr['default'] . '\'; this.title=\'图片未找到.\'" class="img-responsive img-thumbnail" width="150" />
         </div>';
     return $s;
 }
コード例 #13
0
ファイル: cron3.php プロジェクト: rakotobe/Rakotobe
	function sendOvay () {
		global $_subject, $_from, $_headers, $_type, $_to;
		$mime = "";
		// parametres optionnels
		if (!empty($_from)) $mime .= "From: ".$_from. "\n";
		if (!empty($_headers)) $mime .= $_headers. "\n";
		if (!empty($_body)) attach($_body, "", $_type);
		// entete MIME
		$mime .= "MIME-Version: 1.0\n" . build_multipart();
		// envoi du message
		return mail($_to, $_subject, "", $mime);
	}
コード例 #14
0
                echo $val["id"];
                ?>
"></td>
                <td align="center"><?php 
                echo $val["id"];
                ?>
</td>
                <td align="right">
                    <?php 
                if (!empty($val['img'])) {
                    ?>
<div class="img_border"><img src="<?php 
                    echo attach(get_thumb($val['img'], '_s'), 'item');
                    ?>
" width="32" width="32" class="J_preview" data-bimg="<?php 
                    echo attach($val['img'], 'item');
                    ?>
"></div><?php 
                }
                ?>
                </td>
                <td align="left"><span data-tdtype="edit" data-field="title" data-id="<?php 
                echo $val["id"];
                ?>
" class="tdedit" style="color:<?php 
                echo $val["colors"];
                ?>
;"><?php 
                echo $val["title"];
                ?>
</span></td>
コード例 #15
0
                    </thead>
                    <tbody>
                     <?php 
if (is_array($order_detail)) {
    $i = 0;
    $__LIST__ = $order_detail;
    if (count($__LIST__) == 0) {
        echo "";
    } else {
        foreach ($__LIST__ as $key => $vo) {
            $mod = $i % 2;
            ++$i;
            ?>
<tr class="">
                            <td><img width="68" alt="nopic" src="<?php 
            echo attach(get_thumb($vo['img'], '_b'), session('token') . '/item');
            ?>
"></td>
                            <td class="ltd">
                                <?php 
            echo $vo["title"];
            ?>
 <?php 
            echo $vo["spec_1"];
            ?>
 <?php 
            echo $vo["spec_2"];
            ?>
 
                                
                            </td>
コード例 #16
0
        echo "";
    } else {
        foreach ($__LIST__ as $key => $val) {
            $mod = $i % 2;
            ++$i;
            ?>
<li class="album_<?php 
            echo $val['id'];
            ?>
">
            <a href="javascript:void(0)" onclick="del_album(<?php 
            echo $val['id'];
            ?>
);"><img src="__STATIC__/css/admin/bgimg/tv-collapsable.gif" /></a>
            <a><img src="<?php 
            echo attach(get_thumb($val['url'], '_b'), '' . session('token') . '/item');
            ?>
" style="width:80px;height:60px; border:solid 1px #000; "/></a>
            </li><?php 
        }
    }
} else {
    echo "";
}
?>
            </ul>
            <div class="cb"></div>
            <table width="100%" cellpadding="2" cellspacing="1" class="table_form" id="first_upload_file">
                <tbody class="uplode_file">
                <tr>
                    <th width="100" align="left"><a href="javascript:void(0);" class="blue" onclick="add_file();"><img src="__STATIC__/css/admin/bgimg/tv-expandable.gif" /></a>上传文件 :</th>
コード例 #17
0
        if (count($__LIST__) == 0) {
            echo "";
        } else {
            foreach ($__LIST__ as $key => $vo) {
                $mod = $i % 2;
                ++$i;
                ?>
<div class="order_form">
                            <div class="con">
                                <p class="ware_pic">
                                    <a href="<?php 
                echo U('Item/index', array('id' => $vo['id']));
                ?>
">
                                        <img src="<?php 
                echo attach(get_thumb($vo['img'], '_s'), 'item');
                ?>
" width="40">
                                    </a>
                                </p>
                                <p class="ware_text"><a href="<?php 
                echo U('Item/index', array('id' => $vo['id']));
                ?>
"><?php 
                echo $vo["title"];
                ?>
</a>
                                </p>
                                <p class="price">价格:
                                    <span>¥<?php 
                echo $vo["price"];
コード例 #18
0
<?php if (!defined('THINK_PATH')) exit();?><!doctype html><html><head><meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><link href="__STATIC__/css/admin/style.css" rel="stylesheet"/><title><?php echo L('website_manage');?></title><script>	var URL = '__URL__';
	var SELF = '__SELF__';
	var ROOT_PATH = '__ROOT__';
	var APP	 =	 '__APP__';
	//语言项目
	var lang = new Object();
	<?php $_result=L('js_lang');if(is_array($_result)): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?>lang.<?php echo ($key); ?> = "<?php echo ($val); ?>";<?php endforeach; endif; else: echo "" ;endif; ?></script></head><body><div id="J_ajax_loading" class="ajax_loading"><?php echo L('ajax_loading');?></div><?php if(($sub_menu != '') OR ($big_menu != '')): ?><div class="subnav"><div class="content_menu ib_a blue line_x"><?php if(!empty($big_menu)): ?><a class="add fb J_showdialog" href="javascript:void(0);" data-uri="<?php echo ($big_menu["iframe"]); ?>" data-title="<?php echo ($big_menu["title"]); ?>" data-id="<?php echo ($big_menu["id"]); ?>" data-width="<?php echo ($big_menu["width"]); ?>" data-height="<?php echo ($big_menu["height"]); ?>"><em><?php echo ($big_menu["title"]); ?></em></a> <?php endif; if(!empty($sub_menu)): if(is_array($sub_menu)): $key = 0; $__LIST__ = $sub_menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($key % 2 );++$key; if($key != 1): ?><span>|</span><?php endif; ?><a href="<?php echo U($val['module_name'].'/'.$val['action_name'],array('menuid'=>$menuid)); echo ($val["data"]); ?>" class="<?php echo ($val["class"]); ?>"><em><?php echo L($val['name']);?></em></a><?php endforeach; endif; else: echo "" ;endif; endif; ?></div></div><?php endif; ?><!--商品列表--><div class="pad_lr_10" ><form name="searchform" method="get" ><table width="100%" cellspacing="0" class="search_form"><tbody><tr><td><div class="explain_col"><input type="hidden" name="g" value="admin" /><input type="hidden" name="m" value="item" /><input type="hidden" name="a" value="index" /><input type="hidden" name="menuid" value="<?php echo ($menuid); ?>" /><?php if($sm != ''): ?><input type="hidden" name="sm" value="<?php echo ($sm); ?>" /><?php endif; ?>                    发布时间 :
                    <input type="text" name="time_start" id="J_time_start" class="date" size="12" value="<?php echo ($search["time_start"]); ?>">                    -
                    <input type="text" name="time_end" id="J_time_end" class="date" size="12" value="<?php echo ($search["time_end"]); ?>">					&nbsp;&nbsp;分类 :
                    <select class="J_cate_select mr10" data-pid="0" data-uri="<?php echo U('item_cate/ajax_getchilds', array('type'=>0));?>" data-selected="<?php echo ($search["selected_ids"]); ?>"></select><input type="hidden" name="cate_id" id="J_cate_id" value="<?php echo ($search["cate_id"]); ?>" />          	&nbsp;&nbsp;是否上架 :  
          	<select name="status" ><option value="">--所有--</option><option <?php if($search["status"] == 1): ?>selected=''<?php endif; ?> value="1">上架</option><option <?php if($search["status"] == 0): ?>selected=''<?php endif; ?> value="0">下架</option></select><div class="bk8"></div>                    价格区间 :
                    <input type="text" name="price_min" class="input-text" size="5" value="<?php echo ($search["price_min"]); ?>" />                    -
                    <input type="text" name="price_max" class="input-text" size="5" value="<?php echo ($search["price_max"]); ?>" />                    &nbsp;&nbsp;关键字 :
                    <input name="keyword" type="text" class="input-text" size="25" value="<?php echo ($search["keyword"]); ?>" /><input type="submit" name="search" class="btn" value="搜索" /></div></td></tr></tbody></table></form><?php if($sm == 'image'): ?><div class="J_tablelist item_imglist clearfix"><?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><div class="item fl"><label><input type="checkbox" class="J_checkitem check" value="<?php echo ($val["id"]); ?>" /><div class="img clearfix"><img src="<?php echo attach(get_thumb($val['img'], '_m'), 'item');?>"></div></label><span class="line_x"><?php echo ($val["title"]); ?></span><ul><li><a class="J_tooltip btn_blue" title="<?php echo ($cate_list[$val['cate_id']]); ?>"><?php echo L('cate');?></a></li><li><a class="J_tooltip btn_blue" title="<?php echo (($val["uname"])?($val["uname"]):L('item_no_author')); ?>"><?php echo L('author');?></a></li></ul></div><?php endforeach; endif; else: echo "" ;endif; ?></div><?php else: ?><div class="J_tablelist table_list" data-acturi="<?php echo U('item/ajax_edit');?>"><table width="100%" cellspacing="0"><thead><tr><th width=25><input type="checkbox" id="checkall_t" class="J_checkall"></th><th><span data-tdtype="order_by" data-field="id">ID</span></th><th width="40">&nbsp;</th><th align="left"><span data-tdtype="order_by" data-field="title">商品名称</span></th><th width="70"><span data-tdtype="order_by" data-field="buy_num">卖出数量</span></th><th width="60"><span data-tdtype="order_by" data-field="cate_id">分类</span></th><th width="60"><span data-tdtype="order_by" data-field="cate_id">类型</span></th><th width="70"><span data-tdtype="order_by" data-field="price">价格(元)</span></th><th width="40"><span data-tdtype="order_by" data-field="ordid"><?php echo L('sort_order');?></span></th><th width="70"><span data-tdtype="order_by" data-field="status">是否上架</span></th><th width="120"><span data-tdtype="order_by" data-field="add_time">发布时间</span></th><th width="80"><?php echo L('operations_manage');?></th></tr></thead><tbody><?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><tr><td align="center"><input type="checkbox" class="J_checkitem" value="<?php echo ($val["id"]); ?>"></td><td align="center"><?php echo ($val["id"]); ?></td><td align="right"><?php if(!empty($val['img'])): ?><div class="img_border"><img src="<?php echo attach(get_thumb($val['img'], '_s'), 'item');?>" width="32" width="32" class="J_preview" data-bimg="<?php echo attach($val['img'], 'item');?>"></div><?php endif; ?></td><td align="left"><span data-tdtype="edit" data-field="title" data-id="<?php echo ($val["id"]); ?>" class="tdedit" style="color:<?php echo ($val["colors"]); ?>;"><?php echo ($val["title"]); ?></span></td><td align="center"><b><?php echo ($val["buy_num"]); ?></b></td><td align="center"><b><?php echo ($cate_list[$val['cate_id']]); ?></b></td><td align="center"><b><?php if($val["shop"] == 1): ?>商品<?php endif; if($val["shop"] == 2): ?>团购<?php endif; if($val["shop"] == 3): ?>秒杀<?php endif; ?></b></td><td align="center" class="red"><?php echo ($val["price"]); ?></td><td align="center"><span data-tdtype="edit" data-field="ordid" data-id="<?php echo ($val["id"]); ?>" class="tdedit"><?php echo ($val["ordid"]); ?></span></td><td align="center"><img data-tdtype="toggle" data-id="<?php echo ($val["id"]); ?>" data-field="status" data-value="<?php echo ($val["status"]); ?>" src="__STATIC__/images/admin/toggle_<?php if($val["status"] == 0): ?>disabled<?php else: ?>enabled<?php endif; ?>.gif" /></td><td align="center"><?php echo (date('Y-m-d H:i:s',$val["add_time"])); ?></td><td align="center"><a href="<?php echo u('item/edit', array('id'=>$val['id'], 'menuid'=>$menuid));?>"><?php echo L('edit');?></a> | <a href="javascript:void(0);" class="J_confirmurl" data-uri="<?php echo u('item/delete', array('id'=>$val['id']));?>" data-acttype="ajax" data-msg="<?php echo sprintf(L('confirm_delete_one'),$val['title']);?>"><?php echo L('delete');?></a></td></tr><?php endforeach; endif; else: echo "" ;endif; ?></tbody></table></div><?php endif; ?><div class="btn_wrap_fixed"><label class="select_all mr10"><input type="checkbox" name="checkall" class="J_checkall"><?php echo L('select_all');?>/<?php echo L('cancel');?></label><input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="<?php echo U('item/delete');?>" data-name="id" data-msg="<?php echo L('confirm_delete');?>" value="<?php echo L('delete');?>" /><div id="pages"><?php echo ($page); ?></div></div></div><script src="__STATIC__/js/jquery/jquery.js"></script><script src="__STATIC__/js/jquery/plugins/jquery.tools.min.js"></script><script src="__STATIC__/js/jquery/plugins/formvalidator.js"></script><script src="__STATIC__/js/pinphp.js"></script><script src="__STATIC__/js/admin.js"></script><script>//初始化弹窗
(function (d) {
    d['okValue'] = lang.dialog_ok;
    d['cancelValue'] = lang.dialog_cancel;
    d['title'] = lang.dialog_title;
})($.dialog.defaults);
</script><?php if(isset($list_table)): ?><script src="__STATIC__/js/jquery/plugins/listTable.js"></script><script>$(function(){
	$('.J_tablelist').listTable();
});
</script><?php endif; ?><link rel="stylesheet" href="__STATIC__/js/calendar/calendar-blue.css"/><script src="__STATIC__/js/calendar/calendar.js"></script><script>Calendar.setup({
	inputField : "J_time_start",
	ifFormat   : "%Y-%m-%d",
	showsTime  : false,
	timeFormat : "24"
});
Calendar.setup({
	inputField : "J_time_end",
	ifFormat   : "%Y-%m-%d",
コード例 #19
0
    } else {
        foreach ($__LIST__ as $key => $item) {
            $mod = $i % 3;
            ++$i;
            ?>
<li class="item  <?php 
            if ($mod == "2") {
                ?>
last<?php 
            }
            ?>
"><div class="list-good goods_box todayDb"><div class="good-pic"><div class="pic-img"><a href="<?php 
            echo U('jump/index', array('id' => $item['id']));
            ?>
" target="_blank"><img src="<?php 
            echo attach(get_thumb($item['pic_url'], '_b'), 'item');
            ?>
" width="290px" height="290px"></a></div></div><h5 class="good-title"><?php 
            if ($item["shop_type"] == 'C') {
                ?>
<i class="tao_n" title="淘宝网"></i><?php 
            }
            if ($item["shop_type"] == 'B') {
                ?>
<i class="tao_t" title="天猫商城"></i><?php 
            }
            ?>
<a target="_blank" href="<?php 
            echo U('jump/index', array('id' => $item['id']));
            ?>
" class="title"><?php 
コード例 #20
0
                   </p>
               </div>
           
               <div class="lbar">
                   <p><img height="90" id="imgShopQRcode" src="<?php 
echo attach(get_thumb(C('pin_weixinshop_img'), ''), 'weixin');
?>
"></p>
                   <p><span>微商城二维码</span></p>
                   <p>
                       <a href="<?php 
echo U('setting/index');
?>
">[设置]</a>
                       <a class="group1" title="微商城二维码" id="aDownLoadShopQRcode" href="<?php 
echo attach(get_thumb(C('pin_weixinshop_img'), ''), 'weixin');
?>
">[预览]</a>
                   </p>
               </div>
               <div class="clear"></div>
               <div class="shoplink" id="divShopLink">
                    微商城链接:<input type="text" value="http://<?php 
echo $_SERVER['SERVER_NAME'];
?>
__ROOT__" title="选中,按Ctrl + C可复制!"; onclick="this.select()" class="seltext hand" readonly="readonly" id="txtShopLink" name="txtShopLink">
               </div>
               
                <div class="shoplink" >
                    微商接口配置URL:<input type="text" value="http://<?php 
echo $_SERVER['SERVER_NAME'];
コード例 #21
0
 /**
  * 上传文件保存,缩略图暂未实现
  *
  * @param string $file  上传的$_FILE字段
  * @param string $type  上传类型(将按分类保存不同子目录,image -> images)
  * @param string $sname 保存的文件名,如果为 auto 则自动生成文件名,否则请指定从附件目录开始的完整相对路径(包括文件名,不包括文件扩展名)
  * @param array $extra
  * @return array 返回结果数组,字段包括:success => bool 是否上传成功,path => 保存路径(从附件目录开始的完整相对路径)
  */
 public static function upload($file, $type = 'image', $sname = 'auto')
 {
     if (empty($file)) {
         return error(-1, '没有上传内容');
     }
     $type = in_array($type, array('image', 'audio')) ? $type : 'image';
     $settings = array('image' => array('storage' => 'images/', 'extentions' => array('jpg', 'png'), 'limit' => 1024));
     if (!array_key_exists($type, $settings)) {
         return error(-1, '未知的上传类型');
     }
     $extention = pathinfo($file['name'], PATHINFO_EXTENSION);
     if (!in_array(strtolower($extention), $settings[$type]['extentions'])) {
         return error(-1, '不允许上传此类文件');
     }
     if (!empty($settings[$type]['limit']) && $settings[$type]['limit'] * 1024 < filesize($file['tmp_name'])) {
         return error(-1, "上传的文件超过大小限制,请上传小于 {$settings[$type]['limit']}k 的文件");
     }
     $path = MB_ROOT . '/attachment/';
     $ret = array();
     if ($sname == 'auto') {
         $ret['filename'] = $settings[$type]['storage'] . date('Y/m/');
         File::mkdirs($path . $ret['filename']);
         do {
             $filename = util_random(30) . ".{$extention}";
         } while (file_exists($path . $ret['filename'] . $filename));
         $ret['filename'] .= $filename;
     } else {
         $ret['filename'] = $settings[$type]['storage'] . $sname;
         mkdirs(dirname($path . $ret['filename']));
     }
     $ret['abs'] = $path . $ret['filename'];
     if (!File::move($file['tmp_name'], $ret['abs'])) {
         return error(-1, '保存上传文件失败');
     }
     $ret['url'] = attach('attachment/' . $ret['filename']);
     return $ret;
 }
コード例 #22
0
ファイル: run.php プロジェクト: kaibosh/nZEDb
        exec("tmux selectp -t {$tmux_session}:0.0; tmux splitw -t {$tmux_session}:0 -h -p 67 'printf \"]2;update_binaries\"'");
        exec("tmux selectp -t {$tmux_session}:0.0; tmux splitw -t {$tmux_session}:0 -v -p 25 'printf \"]2;nzb-import\"'");
        exec("tmux selectp -t {$tmux_session}:0.2; tmux splitw -t {$tmux_session}:0 -v -p 67 'printf \"]2;backfill\"'");
        exec("tmux splitw -t {$tmux_session} -v -p 50 'printf \"]2;update_releases\"'");
        window_utilities($tmux_session);
        window_post($tmux_session);
        if ($nntpproxy == 1) {
            window_ircscraper($tmux_session);
            window_proxy($tmux_session, 4);
            window_sharing($tmux_session);
        } else {
            window_ircscraper($tmux_session);
            window_sharing($tmux_session);
        }
        start_apps($tmux_session);
        attach($DIR, $tmux_session);
    }
}
####################################################################################################
######################################### F U N C T I O N S ########################################
####################################################################################################
/**
 *
 * @param string $pane
 *
 */
function writelog($pane)
{
    $path = dirname(__FILE__) . "/logs";
    $getdate = gmDate("Ymd");
    $tmux = new Tmux();
コード例 #23
0
 public function attach(\SplObserver $observer)
 {
     $this->storage - attach($observer);
 }
コード例 #24
0
            
                <div class="ware">
                 <?php 
if (is_array($item_detail)) {
    $i = 0;
    $__LIST__ = $item_detail;
    if (count($__LIST__) == 0) {
        echo "";
    } else {
        foreach ($__LIST__ as $key => $item) {
            $mod = $i % 2;
            ++$i;
            ?>
<div class="ware_list">
                        <div class="ware_pic"><img src="<?php 
            echo attach(get_thumb($item['img'], '_b'), 'item');
            ?>
" height="50" width="50"></div>
                        <div class="ware_text">
                            <div class="ware_text1">
                                <a href="#"><?php 
            echo $item["title"];
            ?>
</a><br>
                                <span></span>
                            </div>
                            <div class="ware_text2">
                                <span>数量:<strong><?php 
            echo $item["quantity"];
            ?>
</strong></span>
コード例 #25
0
 private function fileImageBrowser()
 {
     $path = I('get.path');
     $path = str_replace(array('./', '../', '//'), '', $path);
     $path = trim($path, '/');
     $path = trim($path, '.');
     $path .= '/';
     $root = MB_ROOT . 'attachment/images/';
     $currentPath = $root . $path;
     $exts = array('gif', 'jpg', 'jpeg', 'png', 'bmp');
     //遍历目录取得文件信息
     $files = array();
     if ($path != '/') {
         $files[] = array('filename' => '..', 'is_dir' => true, 'datetime' => 0);
         $this->assign('parentPath', str_replace('\\', '/', dirname($path)));
     }
     $pieces = explode('/', $path);
     $crumbs = array();
     if (!empty($pieces)) {
         $line = '';
         foreach ($pieces as $piece) {
             if (!empty($piece)) {
                 $line .= '/' . $piece;
                 $crumbs[] = array($piece, $line);
             }
         }
     }
     $this->assign('crumbs', $crumbs);
     $this->assign('currentImage', attach(I('get.file')));
     if (is_dir($currentPath)) {
         if ($handle = opendir($currentPath)) {
             while (false !== ($filename = readdir($handle))) {
                 if ($filename == '.') {
                     continue;
                 }
                 if ($filename == '..') {
                     continue;
                 }
                 $file = $currentPath . '/' . $filename;
                 if (is_dir($file)) {
                     $files[] = array('filename' => $filename, 'is_dir' => true, 'datetime' => date('Y-m-d H:i:s', filemtime($file)));
                 } else {
                     $ext = strtolower(pathinfo($file, PATHINFO_EXTENSION));
                     if (in_array($ext, $exts)) {
                         $entry = array();
                         $entry['filename'] = 'images/' . $path . $filename;
                         $entry['url'] = attach($entry['filename']);
                         $files[] = array('filename' => $filename, 'is_dir' => false, 'url' => $entry['url'], 'entry' => str_replace('"', '\'', json_encode($entry)), 'datetime' => date('Y-m-d H:i:s', filemtime($file)));
                     }
                 }
             }
         }
     }
     usort($files, array($this, 'fileCompare'));
     $this->assign('path', $path);
     $this->assign('type', 'image');
     $this->assign('callback', I('get.callback'));
     $this->assign('files', $files);
     $this->display('file-browser');
 }
コード例 #26
0
            ++$i;
            ?>
<tr><td align="center"><input type="checkbox" class="J_checkitem" value="<?php 
            echo $val["id"];
            ?>
"></td><td align="center"><?php 
            echo $val["id"];
            ?>
</td><td align="right"><div class="img_border"><a href="http://item.taobao.com/item.htm?id=<?php 
            echo $val["num_iid"];
            ?>
" target="_blank"><img src="<?php 
            echo attach(get_thumb($val['pic_url'], '_s'), 'item');
            ?>
" width="32" width="32" class="J_preview" data-bimg="<?php 
            echo attach(get_thumb($val['pic_url '], '_m'), 'item');
            ?>
"></a></div></td><td align="left"><span data-tdtype="edit" data-field="title" data-id="<?php 
            echo $val["id"];
            ?>
" class="tdedit" style="color:<?php 
            echo $val["colors"];
            ?>
;"><?php 
            echo $val["title"];
            ?>
</span></td><td align="center"><b><?php 
            echo $cate_list[$val['cate_id']];
            ?>
</b></td><td align="center"><?php 
            echo $val["nick"];
コード例 #27
0
                echo $val["id"];
                ?>
"></td>
                <td align="center" style ="display:none;"><?php 
                echo $val["id"];
                ?>
</td>
                <td align="right">
                    <?php 
                if (!empty($val['img'])) {
                    ?>
<div class="img_border"><img src="<?php 
                    echo attach(get_thumb($val['img'], '_s'), '' . session('token') . '/item');
                    ?>
" width="32" width="32" class="J_preview" data-bimg="<?php 
                    echo attach($val['img'], '' . session('token') . '/item');
                    ?>
"></div><?php 
                }
                ?>
                </td>
                <td align="left"><span data-tdtype="edit" data-field="title" data-id="<?php 
                echo $val["id"];
                ?>
" class="tdedit" style="color:<?php 
                echo $val["colors"];
                ?>
;"><?php 
                echo $val["title"];
                ?>
</span></td>