root vor 5 Jahren
Ursprung
Commit
c3b4223ba5

+ 2 - 2
addons/zh_jdgjb/inc/web/storeinfo.inc.php

xqd
@@ -13,9 +13,9 @@ $user=pdo_getall('zh_jdgjb_user',array('uniacid'=>$_W['uniacid']));
 		if($list['img']){
 
 			if(strlen($list['img'])>51){
-			    $img= explode(',',$list['img']);
+			    $imgs= explode(',',$list['img']);
             }else{
-                $img=array(
+                $imgs=array(
                     0=>$list['img']
                     );
             }

+ 1 - 1
addons/zh_jdgjb/template/web/storeinfo.html

xqd
@@ -156,7 +156,7 @@
         <div class="form-group">
             <label for="inputEmail3" class="col-sm-2 control-label">商家店铺图片</label>
             <div class="col-sm-10">
-                {php echo tpl_form_field_multi_image('img',$img);}
+                {php echo tpl_form_field_multi_image('img',$imgs);}
                 建议尺寸大小:375px*200px
             </div>
         </div>

+ 0 - 3
web/common/tpl.func.php

xqd xqd
@@ -361,8 +361,6 @@ function tpl_form_field_image($name, $value = '', $default = '', $options = arra
 
 
 function tpl_form_field_multi_image($name, $value = array(), $options = array()) {
-    print_r($name);
-    print_r($value);die;
 	global $_W;
 	$options['multiple'] = true;
 	$options['direct'] = false;
@@ -401,7 +399,6 @@ function tpl_form_field_multi_image($name, $value = array(), $options = array())
 </div>
 <div class="input-group multi-img-details">
 EOF;
-
 	if (is_array($value) && count($value) > 0) {
 		foreach ($value as $row) {
 			$s .= '