function action_submit() { global $sectionArray; //模块动作 //add_default:new:n,export_default:export:x,import_default:import:i //submit:new:n,cancel:cancel:c $array = array("保存" => "submit:save:s", "打印" => "print:print:p", "导出" => "export:export:e", "修改日志" => "modifyrecord:modifyrecord:m", "返回" => "cancel:cancel:c", "同建联系人" => "savelink:savelink:l"); print "<TR><TD class=TableContent align=left width=25% colSpan=1> 模块动作:</TD><TD class=TableContent align=left colSpan=1> \n"; checkbox_array($array, "action_submit", $sectionArray['action_submit']); print "</TD></TR>"; }
function trick_names_checkbox_ul($tricks) { if (count($tricks) > 0) { $content = ''; foreach ($tricks as $trick) { $content .= li(checkbox_array('trick_ids', $trick['trick_id']) . ' --- ' . trick_full_name($trick['name'], $trick['direction'], $trick['stance'], $trick['tag_name'])); } return ul($content); } else { return false; } }
function tag_ids_checkbox_ul($tags, $tag_defaults = array()) { if (count($tags) > 0) { $content = ''; foreach ($tags as $tag) { $default = count($tag_defaults) > 0 ? in_array($tag['tag_id'], $tag_defaults) : false; $content .= li(checkbox_array('tag_ids', $tag['tag_id'], $default) . ' --- ' . tag_link($tag['name'])); } $content = ul($content); return $content; } else { return false; } }