| @@ -123,7 +123,7 @@ | |||
| } | |||
| } | |||
| function DelSel() { | |||
| DedeConfirm("您确实要删除这些分类吗").then((v) => { | |||
| DedeConfirm("确实要删除这些分类吗").then((v) => { | |||
| document.form1.submit(); | |||
| }).catch((e) => { | |||
| console.log(e) | |||
| @@ -143,14 +143,14 @@ | |||
| <table class="table border my-3"> | |||
| <tr> | |||
| <td bgcolor="#f8fafb"> | |||
| <select name="egroup1" id="egroup1" onChange="ChangePage(this);" class="admin-input-sm"> | |||
| <select name="egroup1" onChange="ChangePage(this);" id="egroup1" class="admin-input-sm"> | |||
| <option value="0">所有组</option> | |||
| <?php | |||
| $selgroup = ''; | |||
| foreach($etypes as $arr) | |||
| { | |||
| $stylecolor = ''; | |||
| if ($arr['issystem']==1) $stylecolor = " style='color:#999' "; | |||
| if ($arr['issystem']==1) $stylecolor = "style='color:#999'"; | |||
| if ($egroup==$arr['egroup']) { | |||
| $selgroup = $arr['itemname']; | |||
| echo "<option value='{$arr['id']}' $stylecolor selected='1'>{$arr['egroup']}|{$arr['itemname']}</option>"; | |||
| @@ -161,8 +161,8 @@ | |||
| ?> | |||
| </select> | |||
| <button type="button" name="gedit" id="gedit" class="btn btn-success btn-sm" onclick="EditType();">修改</button> | |||
| <button type="button" name="gdel" id="gdel" class="btn btn-success btn-sm" onclick="DelType();">删除</button> | |||
| <button type="button" name="gview" id="gview" class="btn btn-success btn-sm" onclick="ViewType();">预览</button> | |||
| <button type="button" name="gdel" id="gdel" class="btn btn-danger btn-sm" onclick="DelType();">删除</button> | |||
| <button type="button" name="addnew" id="addnew" class="btn btn-success btn-sm" onclick="AddType();">新增联动组</button> | |||
| <a href="stepselect_main.php?action=upallcache" class="btn btn-success btn-sm">更新所有缓存</a> | |||
| </td> | |||
| @@ -175,9 +175,8 @@ | |||
| $options = ''; | |||
| while($row1 = $dsql->GetArray('out')) | |||
| { | |||
| if (!preg_match("#\.#", $row1['evalue'])) | |||
| { | |||
| $row1['ename'] = ($row1['evalue'] % 500 == 0)? $row1['ename'] : '└─ '.$row1['ename']; | |||
| if (!preg_match("#\.#", $row1['evalue'])) { | |||
| $row1['ename'] = ($row1['evalue'] % 500 == 0) ? $row1['ename'] : '└─ '.$row1['ename']; | |||
| if ($topvalue != $row1['evalue']) $options .= "<option value='{$row1['evalue']}'>{$row1['ename']}</option>"; | |||
| else $options .= "<option value='{$row1['evalue']}' selected='selected'>{$row1['ename']}</option>"; | |||
| } | |||
| @@ -192,7 +191,7 @@ | |||
| <span class="float-right"> | |||
| <?php | |||
| if ($egroup=='nativeplace') { | |||
| echo "<a href='stepselect_main.php?action=exarea' class='btn btn-success btn-sm'>导入默认省市地区表</a>"; | |||
| echo "<a href='stepselect_main.php?action=exarea' class='btn btn-success btn-sm'>导入默认省市地区</a>"; | |||
| } | |||
| ?> | |||
| </span> | |||
| @@ -204,7 +203,7 @@ | |||
| <input type="hidden" name="action" value="addenum_save"> | |||
| <input type="hidden" name="issign" value="<?php echo $arr['issign'];?>"> | |||
| <input type="hidden" name="egroup" value="<?php echo $arr['egroup'];?>"> | |||
| <span>隶属分类:</span> | |||
| <span>所属分类:</span> | |||
| <select name="topvalue" onChange="ChangePage2(this);" class="admin-input-sm"> | |||
| <option value="0"><?php echo $selgroup;?></option> | |||
| <?php echo $options;?> | |||
| @@ -245,7 +244,7 @@ | |||
| <td> | |||
| <?php | |||
| if (!preg_match("#\.#", $fields['evalue'])) { | |||
| if ($fields['evalue']>500 && $fields['evalue']%500 != 0) $fields['ename'] = "└─ ".$fields['ename']; | |||
| if ($fields['evalue']>500 && $fields['evalue']%500 != 0) $fields['ename'] = "└─ ".$fields['ename']; | |||
| } else { | |||
| $fields['ename'] = "└── ".$fields['ename']; | |||
| } | |||
| @@ -256,7 +255,7 @@ | |||
| <td> | |||
| <?php | |||
| if (!preg_match("#\.#", $fields['evalue'])) { | |||
| if ($fields['evalue']>500 && $fields['evalue']%500 != 0) echo '二级选择'; | |||
| if ($fields['evalue']>500 && $fields['evalue']%500 != 0) echo '二级选择'; | |||
| else echo '一级选择'; | |||
| } else { | |||
| echo "三级选择"; | |||
| @@ -270,7 +269,7 @@ | |||
| if (!empty($egroup)) { | |||
| ?> | |||
| <a href='javascript:updateItem({dede:field.id/});' class='btn btn-success btn-sm'><i class='fa fa-repeat'></i> 更新</a> | |||
| <a href='stepselect_main.php?action=delenum&id={dede:field.id/}' class='btn btn-success btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||
| <a href='stepselect_main.php?action=delenum&id={dede:field.id/}' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||
| <?php | |||
| } else { | |||
| echo "<a href='stepselect_main.php?egroup={$fields['egroup']}'>".$egroups[$fields['egroup']]."</a>"; | |||