if (strpos($value['fieldname'], 'ext_') === 0) { $title = $value['fieldtitle']; } else { $title = $mname . '_' . $value['fieldname']; } pklabel(array('type' => $value['formtype'], 'alang' => $title, 'name' => $value['fieldname'], 'options' => $temparr2, 'rows' => 10, 'width' => '30%', 'size' => '60', 'value' => $editvalue[$value['fieldname']], 'other' => $other, 'fileurl' => $fileurl, 'required' => $value['required'])); } } echo '<script charset="' . $_G['charset'] . '">function getattributes() {$("#attributes").load("batch.attribute.php?ajax=1&itemid=' . $editvalue['itemid'] . '&typeid="+$("select[name=catid]").val());}</script>'; if (($mname == 'good' || $mname == 'groupbuy') && $_GET['action'] != 'list') { showrelatedinfo($mname); if ($_GET['action'] == 'add') { showrelatedinfojs($mname, $_SGLOBAL['panelinfo']['groupid'], '', $_SGLOBAL['panelinfo']['itemid'], 'admin'); } else { $editvalue['groupid'] = getgroupid($mname, $editvalue['itemid']); showrelatedinfojs($mname, $editvalue['groupid'], $editvalue['itemid'], $editvalue['shopid'], 'admin'); } } if (!empty($_SGLOBAL['panelinfo'])) { showhiddenfields(array('shopid' => $_SGLOBAL['panelinfo']['itemid'])); } elseif ($editvalue['shopid']) { showhiddenfields(array('shopid' => $editvalue['shopid'])); } showhiddenfields(array('itemid' => $editvalue['itemid'])); showhiddenfields(array('nid' => $editvalue['nid'])); if ($_GET['action'] == 'edit') { showhiddenfields(array('nocheckcatid' => 1)); } showhiddenfields(array('valuesubmit' => 'yes')); showsubmit('settingsubmit', 'submit', ''); showtablefooter();
// 如果是自定字 if (strpos($value['fieldname'], 'ext_') === 0) { $title = $value['fieldtitle']; } else { $title = $mname . '_' . $value['fieldname']; } pklabel(array('type' => $value['formtype'], 'alang' => $title, 'name' => $value['fieldname'], 'options' => $temparr2, 'rows' => 10, 'width' => '30%', 'size' => '60', 'value' => $editvalue[$value['fieldname']], 'other' => $other, 'fileurl' => $fileurl, 'required' => $value['required'])); } } echo '<script> function getattributes() { $("#attributes").load("batch.attribute.php?ajax=1' . ($itemgrade > 1 && $_SGLOBAL['panelinfo']['group']['verify' . $mname] || $editvalue['updateverify'] == 0 ? '&itemid=' . $editvalue['itemid'] : '') . '&typeid="+$("select[name=catid]").val()); }</script>'; if (($mname == 'good' || $mname == 'groupbuy') && $_GET['action'] != 'list') { showrelatedinfo($mname); showrelatedinfojs($mname, $_SGLOBAL['panelinfo']['groupid'], $editvalue['itemid'], $_G['myshopid']); } showtablefooter(); showhiddenfields(array('itemid' => $editvalue['itemid'])); showhiddenfields(array('nid' => $editvalue['nid'])); showhiddenfields(array('valuesubmit' => 'yes')); if ($taskmessage) { showhiddenfields(array('stuffurl' => $nexttask)); showsubmit('settingsubmit', 'submitnext', '', '', '', $nexttask); } else { showsubmit('settingsubmit', 'submit', ''); } showformfooter(); bind_ajax_form(); echo '<script type="text/javascript" charset="' . $_G['charset'] . '">loadcalendar();</script>'; if ($editvalue['catid']) {