<td nowrap class="TableContent" width="15%" style="border-right:#cccccc solid 1px;"> <?php echo $flowrow["fromname"]; ?> :<?php if ($flowrow["confirmation"] == '1') { get_helps(); } ?> </td> <td class="TableData"> <?php if ($flowrow["inputtype"] == '0') { if ($flowrow["inputtype1"] == '1') { echo get_work_input($flowrow["inputname"], 300, 20, $flowrow['inputvalue']); } elseif ($flowrow["inputtype1"] == '2') { echo get_work_textarea($flowrow["inputname"], 600, 200, $flowrow['inputvalue']); } elseif ($flowrow["inputtype1"] == '3') { //单选 echo get_work_radio($flowrow["inputname"], $flowrow["inputvaluenum"], $flowrow['inputvalue']); } elseif ($flowrow["inputtype1"] == '4') { //多选 echo get_work_checkbox($flowrow["inputname"], $flowrow["inputvaluenum"], $flowrow['inputvalue']); } elseif ($flowrow["inputtype1"] == '5') { //下拉 echo get_work_select($flowrow["inputname"], $flowrow["inputvaluenum"], $flowrow['inputvalue']); } } elseif ($flowrow["inputtype"] == '1') { //图片 public_upload($flowrow["inputname"], $flowrow["inputvalue"]); } elseif ($flowrow["inputtype"] == '2') { //附件
function W_I_DB($typeid = 0, $tplid = 0, $inputname = '', $w = 0, $h = 0, $value = '', $type6 = 0) { global $db; $tpl = $db->fetch_one_array("SELECT * FROM " . DB_TABLEPRE . "workclass_from where typeid='" . $typeid . "' and tplid='" . $tplid . "' and inputname='" . $inputname . "' ORDER BY fromid Asc"); if ($tpl['inputtype'] == '0') { if ($tpl["inputtype1"] == '1') { echo get_work_input($tpl["inputname"], $w, $h, $tpl['inputvalue']); } elseif ($tpl["inputtype1"] == '2') { echo get_work_textarea($tpl["inputname"], $w, $h, $tpl['inputvalue']); } elseif ($tpl["inputtype1"] == '3') { echo get_work_radio($tpl["inputname"], $tpl["inputvaluenum"], $tpl['inputvalue']); } elseif ($tpl["inputtype1"] == '4') { echo get_work_checkbox($tpl["inputname"], $tpl["inputvaluenum"], $tpl['inputvalue']); } elseif ($tpl["inputtype1"] == '5') { echo get_work_select($tpl["inputname"], $tpl["inputvaluenum"], $tpl['inputvalue']); } } elseif ($tpl["inputtype"] == '1') { public_upload($tpl["inputname"], '', $w, $h, '图片上传'); } elseif ($tpl["inputtype"] == '2') { public_upload($tpl["inputname"], $w, $h); } elseif ($tpl["inputtype"] == '3') { echo get_work_date($tpl["inputname"], $w, $h); } elseif ($tpl["inputtype"] == '4') { $_USER = new User(); get_depabox(1, $tpl["inputname"], get_depauseridname($_USER->id), "+选择部门", $w, $h); } elseif ($tpl["inputtype"] == '5') { get_pubuser(1, $tpl["inputname"], "", "+选择人员", $w, $h); } elseif ($tpl["inputtype"] == '6') { if ($type6 != 0) { echo '<textarea name="' . $tpl["inputname"] . '[]" style="width:' . $w . 'px;font-size:14px;" rows="' . $h . '">' . $value . '</textarea>'; } else { echo '<input type="text" name="' . $tpl["inputname"] . '[]" style="border:1px;line-height:' . $h . 'px;width:' . $w . 'px;height:' . $h . 'px;font-size:14px;" value="' . $value . '" />'; } } }