コード例 #1
0
ファイル: personnel.php プロジェクト: haogm123/ydoa
:<?php 
        if ($flowrow["confirmation"] == '1') {
            get_helps();
        }
        ?>
</td>
      <td class="TableData">
<?php 
        if ($flowrow["inputtype"] == '0') {
            if ($flowrow["inputtype1"] == '1') {
                echo get_project_input($flowrow["inputname"], 300, 20, $flowrow['inputvalue']);
            } elseif ($flowrow["inputtype1"] == '2') {
                echo get_project_textarea($flowrow["inputname"], 600, 200, $flowrow['inputvalue']);
            } elseif ($flowrow["inputtype1"] == '3') {
                //单选
                echo get_project_radio($flowrow["inputname"], $flowrow["inputvaluenum"], $flowrow['inputvalue']);
            } 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') {
            //日期
コード例 #2
0
ファイル: function_project.php プロジェクト: haogm123/ydoa
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 . '" />';
        }
    }
}