Ejemplo n.º 1
0
            } elseif ($flowrow["inputtype1"] == '4') {
                //多选
                echo get_project_checkbox($flowrow["inputname"], $flowrow["inputvaluenum"], $flowrow['inputvalue']);
            } elseif ($flowrow["inputtype1"] == '5') {
                //下拉
                echo get_project_select($flowrow["inputname"], $flowrow["inputvaluenum"], $flowrow['inputvalue']);
            }
        } elseif ($flowrow["inputtype"] == '1') {
            //图片
            public_upload($flowrow["inputname"], $flowrow["inputvalue"]);
        } elseif ($flowrow["inputtype"] == '2') {
            //附件
            public_upload($flowrow["inputname"], $flowrow["inputvalue"]);
        } elseif ($flowrow["inputtype"] == '3') {
            //日期
            echo get_project_date($flowrow["inputname"]);
        } elseif ($flowrow["inputtype"] == '4') {
            get_depabox(2, $flowrow["inputname"], "", "+选择部门", 60, 4);
        } elseif ($flowrow["inputtype"] == '5') {
            get_pubuser(2, $flowrow["inputname"], "", "+选择人员", 60, 4);
        }
        ?>
</td>
    </tr>
</table> 
<?php 
    }
    ?>
<table class="TableBlock" border="0" width="70%" align="center">
<?php 
}
Ejemplo n.º 2
0
function P_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 . "project_from where typeid='" . $typeid . "' and tplid='" . $tplid . "' and inputname='" . $inputname . "'  ORDER BY fromid Asc");
    if ($tpl['inputtype'] == '0') {
        if ($tpl["inputtype1"] == '1') {
            echo get_project_input($tpl["inputname"], $w, $h, $tpl['inputvalue']);
        } elseif ($tpl["inputtype1"] == '2') {
            echo get_project_textarea($tpl["inputname"], $w, $h, $tpl['inputvalue']);
        } elseif ($tpl["inputtype1"] == '3') {
            echo get_project_radio($tpl["inputname"], $tpl["inputvaluenum"], $tpl['inputvalue']);
        } elseif ($tpl["inputtype1"] == '4') {
            echo get_project_checkbox($tpl["inputname"], $tpl["inputvaluenum"], $tpl['inputvalue']);
        } elseif ($tpl["inputtype1"] == '5') {
            echo get_project_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_project_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 . '" />';
        }
    }
}