当前位置: 首页>>代码示例>>PHP>>正文


PHP print_hidden函数代码示例

本文整理汇总了PHP中print_hidden函数的典型用法代码示例。如果您正苦于以下问题:PHP print_hidden函数的具体用法?PHP print_hidden怎么用?PHP print_hidden使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了print_hidden函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: print_feedback

    if (isset($progress)) {
        print_feedback($progress);
    }
    print_errors($errors);
    echo '<input type="hidden" name="step" value="' . $step . '" />';
    unset($_POST['step']);
    unset($_POST['action']);
    unset($errors);
    print_hidden($step);
    echo '<p><strong>Note:</strong> To change permissions on Unix use <kbd>chmod a+rw</kbd> then the file name.</p>';
    echo '<p align="center"><input type="submit" class="button" value=" Try Again " name="retry" />';
} else {
    if (!copy('../../' . $_POST['step1']['old_path'] . '/include/config.inc.php', '../include/config.inc.php')) {
        echo '<input type="hidden" name="step" value="' . $step . '" />';
        print_feedback($progress);
        $errors[] = 'include/config.inc.php cannot be written! Please verify that the file exists and is writeable. On Unix issue the command <kbd>chmod a+rw include/config.inc.php</kbd> to make the file writeable. On Windows edit the file\'s properties ensuring that the <kbd>Read-only</kbd> attribute is <em>not</em> checked and that <kbd>Everyone</kbd> access permissions are given to that file.';
        print_errors($errors);
        echo '<p><strong>Note:</strong> To change permissions on Unix use <kbd>chmod a+rw</kbd> then the file name.</p>';
        echo '<p align="center"><input type="submit" class="button" value=" Try Again " name="retry" />';
    } else {
        echo '<input type="hidden" name="step" value="' . $step . '" />';
        print_hidden($step);
        $progress[] = 'Data has been saved successfully.';
        @chmod('../include/config.inc.php', 0444);
        print_feedback($progress);
        echo '<p align="center"><input type="submit" class="button" value=" Next &raquo; " name="submit" /></p>';
    }
}
?>

</form>
开发者ID:harriswong,项目名称:AContent,代码行数:31,代码来源:ustep5.php

示例2: newai_import

function newai_import($fields, $mode = 'table')
{
    global $common_html, $html_etc;
    global $return_sql_line, $db;
    global $columns;
    //print_R($columns);
    global $showlistfieldlist, $showlistfieldlist_key;
    global $foreignkey, $uniquekey, $primarykey;
    $tablename = $fields['table']['name'];
    $SQL = $fields['sql']['SQL'];
    $init = explode('_', $_GET['action']);
    $mark = $init[1];
    if ($uniquekey == '') {
        $uniquekey = $primarykey;
    }
    //print $uniquekey;
    print "<FORM name=form1 action=\"?action=import_" . $mark . "_data\" method=post encType=multipart/form-data>\n";
    print "<input type=hidden name=hidden_str value=''>\n";
    print "<script >";
    print "\nfunction temp_function()\n{\n\n\tvar selectid_str=\"\";\n\t/*\n\tfor(i=0;i<document.all(\"selectid\").length;i++)\n\t\t{\n\n\t\tel=document.all(\"selectid\").item(i);\n\t\tif(el.checked)\n\t\t{  val=el.value;\n         selectid_str+=val + \",\";\n\t\t}\n\t}*/\n\tform1.hidden_str.value=selectid_str;\n\tform1.submit();\n\tvar sbtn=document.getElementsByName('submitbtn');\n\tfor(i=0;i<sbtn.length;i++)\n\t{\n\t\tsbtn[i].value='提交中';\n\t\tsbtn[i].disabled=true;\n\t}\n}\n";
    print "</script>";
    global $tablewidth, $primarykey, $primarykey_index;
    $tablewidth = $tablewidth != "" ? $tablewidth : 450;
    table_begin($tablewidth);
    print_title("数据导入操作,唯一索引限制,多个表示不能同时重复", 3);
    //print_R($common_html['common_html']['contentimport']);
    if ($foreignkey != "") {
        $foreignkey_array = explode(':', $foreignkey);
        $columns_parent = returntablecolumn($foreignkey_array[1]);
        print_R($columns_parent);
        print_select('选择考试名称', $columns[(string) $foreignkey_array[3]], $value, $foreignkey_array[1], $columns_parent[(string) $foreignkey_array[3]], $columns_parent[(string) $foreignkey_array[2]], $colspan = 3, $columns_parent[(string) $foreignkey_array[4]]);
        print_hidden($columns[(string) $foreignkey_array[3]], 'foreignkey');
    }
    print "<TR class=TableData>\n";
    print "<TD noWrap align=middle width=50>唯一索引:</TD>\n";
    print "<TD colspan=2>";
    $uniquekey_array = explode(',', $uniquekey);
    $FieldList = array();
    for ($i = 0; $i < sizeof($uniquekey_array); $i++) {
        $uniquekey_KEY = $uniquekey_array[$i];
        if ($uniquekey_KEY != "") {
            $uniquekey_KEY_ADD = explode(':', $uniquekey_KEY);
            if ($uniquekey_KEY_ADD[1] == "userid") {
                $FieldList[] = $columns["" . $uniquekey_KEY_ADD[0] . ""] . "(自动生成)";
            } else {
                if ($uniquekey_KEY_ADD[1] == "username") {
                    $FieldList[] = $columns["" . $uniquekey_KEY_ADD[0] . ""] . "(自动生成)";
                } else {
                    if ($uniquekey_KEY_ADD[1] == "datetime") {
                        $FieldList[] = $columns["" . $uniquekey_KEY_ADD[0] . ""] . "(自动生成)";
                    } else {
                        $tablenamelang = returnsystemlang($tablename);
                        $FieldList[] = $tablenamelang[$tablename][$columns["" . $uniquekey_KEY_ADD[0] . ""]];
                    }
                }
            }
        }
    }
    //print_R($uniquekey_array);
    //输出不较验主键时的选择列表
    $唯一字段显示文本 = join(',', $FieldList);
    print $唯一字段显示文本;
    print "</TD>\n";
    print "</TR>\n";
    global $importgroup;
    if ($importgroup != "") {
        //print $importgroup;
        print_title('选择要导入的组', 3);
        $importgroupArray = explode(':', $importgroup);
        $showfieldIndex = $importgroupArray[0];
        $showFieldName = $columns[$showfieldIndex];
        $showfieldTableName = $importgroupArray[1];
        $showfieldColumns = returntablecolumn($showfieldTableName);
        $showfieldIndexValue = $importgroupArray[2];
        $showfieldIndexName = $importgroupArray[3];
        $showfieldIndexValue = $showfieldColumns[$showfieldIndexName];
        $showfieldIndexName = $showfieldColumns[$showfieldIndexName];
        print_select('选择要导入的组:', $showFieldName, $value = '', $showfieldTableName, $showfieldIndexValue, $showfieldIndexName, $colspan = 2, $setfieldname = '', $setfieldvalue = '', $setfieldboolean = '');
    }
    /*
    if($tablename == 'customer'){
    	print_title('请您先<a style="color:red;" href="xls_template/客户信息模板.xls">下载模板</a>,编辑完成再进行导入。',3);
    }elseif($tablename == 'supply'){
    	print_title('请您先<a style="color:red;" href="xls_template/供应商信息模板.xls">下载模板</a>,编辑完成再进行导入。',3);
    }elseif($tablename == 'product'){
    	print_title('请您先<a style="color:red;" href="xls_template/商品信息模板.xls">下载模板</a>,编辑完成再进行导入。',3);
    }else{
    	print_title('导入EXCEL格式数据文件,请您直接从导出功能模块下载导入模板',3);
    }
    */
    print_title('导入EXCEL格式数据文件,请您直接从导出功能模块下载导入模板', 3);
    print "<TR class=TableData height=50>\n";
    print "<TD noWrap align=middle >EXCEL格式文件</TD>\n";
    print "<TD colspan=2><input name='uploadfileXLS' type=file size=25 class=SmallInput></TD>\n";
    print "</TR>\n";
    //print_title('导入CSV格式数据文件',3);
    //print "<TR class=TableData height=50>\n";
    //print "<TD noWrap align=middle >MS CSV文件</TD>\n";
    //print "<TD colspan=2><input name='uploadfile' type=file size=25 class=SmallInput></TD>\n";
    //print "</TR>\n";
//.........这里部分代码省略.........
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:101,代码来源:newai_import.php

示例3: print_progress

        echo '<p align="center"><input type="submit" class="button" value=" Next &raquo; " name="submit" /></p></form>';
        return;
    }
}
print_progress($step);
unset($_POST['submit']);
if (isset($progress)) {
    print_feedback($progress);
}
if (isset($errors)) {
    print_errors($errors);
}
echo '<form action="' . $_SERVER['PHP_SELF'] . '" method="post" name="form">
	<input type="hidden" name="step" value="2" />';
store_steps(1);
print_hidden(2);
if ($found_lang) {
    ?>
<table width="60%" class="tableborder" cellspacing="0" cellpadding="1" border="0" align="center">
<tr>
	<td colspan="2" class="row1"><p><small>All installed language packs and changes made to the default English language will be deleted. You will have to re-install any language packs by downloading the latest versions from ATutor.ca. Some language packs may not currently be available.</small></p></td>
</tr>
<tr>
	<td class="row1"><small><b><label for="dir">Continue with the upgrade?</label></b></small></td>
		<td class="row1" valign="middle" nowrap="nowrap"><input type="radio" name="override" value="1" id="c2" /><label for="c2">Yes, Continue</label>, <input type="radio" name="override" value="0" id="c1" checked="checked" /><label for="c1">No, Cancel</label></td>
</tr>
</table><br />
	<?php 
}
echo '<input type="hidden" name="db_login" value="' . urlencode($_POST['db_login']) . '" />';
echo '<input type="hidden" name="db_password" value="' . urlencode($_POST['db_password']) . '" />';
开发者ID:genaromendezl,项目名称:ATutor,代码行数:31,代码来源:ustep2.php

示例4: newai_import_XLS

         if ($action_add == 'data') {
             require_once 'newai.php';
             //上传有EXCEL格式文件时调用XLS解析器,否则按CSV格式处理
             if (is_uploaded_file($_FILES['uploadfileXLS']['tmp_name'])) {
                 newai_import_XLS($columns);
             } else {
                 newai_import_CSV($columns);
             }
             exit;
         }
         unset($action_add);
     }
     page_css($IE_TITLE);
     require_once 'newai.php';
     newai_import($fields, 'content');
     print_hidden($tablename, 'tablename');
     break;
 case 'init':
     $_SESSION['SYSTEM_INITVIEW_SEARCH_VALUE_DEFAULT'] = '';
     //存入session
     if (sizeof($action_array) >= 3) {
         //=2
         $action = $action_array[0] . "_" . $action_array[1];
         $action_add = $action_array[2];
     }
     $location_title = 'sunshine_inside';
     //        var_dump($file_ini);//by cwf
     $tablename = $file_ini[$action]['tablename'];
     //unit
     $SYTEM_CONFIG_TABLE != "" ? $tablename = $SYTEM_CONFIG_TABLE : '';
     //为空
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:31,代码来源:newai_control.php

示例5: print_hidden

		}
	}
	if (in_array('ATutor-Get: OK', $headers)) {
		$get_file = 'TRUE';
	} else {
		$get_file = 'FALSE';
	}
}

?>
<br />
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
	<input type="hidden" name="step" value="<?php echo $step; ?>" />
	<input type="hidden" name="copy_from" value="<?php echo $copy_from; ?>" />
	<input type="hidden" name="get_file" value="<?php echo $get_file; ?>" />
	<?php print_hidden($step); ?>

<?php if (isset($_POST['step1']['old_version'])) : ?>
	<input type="hidden" name="content_dir" value="<?php echo $_defaults['content_dir']; ?>" />
	<table width="80%" class="tableborder" cellspacing="0" cellpadding="1" align="center">	
	<tr>
		<td class="row1">The content directory at <strong><?php echo $_defaults['content_dir']; ?> </strong> will be used for this installation's content. Please create it if it does not already exist.</td>
	</tr>
	</table>
<?php elseif ($get_file == 'FALSE') : ?>
	<input type="hidden" name="content_dir" value="<?php if (!empty($_POST['content_dir'])) { echo $_POST['content_dir']; } else { echo $_defaults['content_dir']; } ?>" />

	<table width="80%" class="tableborder" cellspacing="0" cellpadding="1" align="center">	
	<tr>
		<td class="row1"><span class="required" title="Required Field">*</span><strong><label for="contentdir">Content Directory</label></strong>
		<p>It has been detected that your webserver does not support the protected content directory feature. The content directory stores all of the courses' files.</p>
开发者ID:radiocontrolled,项目名称:ATutor,代码行数:31,代码来源:step5.php

示例6:

			
			/* @See include/classes/dbmanager.php */
			queryFromFile('db/atutor_schema.sql');
			queryFromFile('db/atutor_language_text.sql');

			if (!$errors) {
				print_progress($step);

				unset($_POST['submit']);
				unset($_POST['action']);
				store_steps($step);
				print_feedback($progress);

				echo '<form action="'.$_SERVER['PHP_SELF'].'" method="post" name="form">
				<input type="hidden" name="step" value="3" />';
				print_hidden(3);
				echo '<p align="center"><input type="submit" class="button" value="Next &raquo; " name="submit" /></p></form>';
				return;
			}
		}

	}
}

print_progress($step);


echo '<p>Please enter your database information: </p>';


if (isset($progress)) {
开发者ID:radiocontrolled,项目名称:ATutor,代码行数:30,代码来源:step2.php

示例7: newaiadd


//.........这里部分代码省略.........
                    switch ($fields['hidden_field'][$i]['hiddentype']) {
                        case 'dept':
                            $fields['value'][$fieldname] = $_SESSION['USER_DEPT'];
                            break;
                        case 'name':
                            $fields['value'][$fieldname] = $_SESSION['LOGIN_USER_ID'];
                            break;
                        case 'realname':
                            $fields['value'][$fieldname] = $_SESSION['LOGIN_USER_NAME'];
                            break;
                        case 'id':
                            $fields['value'][$fieldname] = $_SESSION['LOGIN_USER_ID'];
                            break;
                        case 'value':
                            $fields['value'][$fieldname] = $hiddenid;
                            break;
                        case 'get':
                            $fields['value'][$fieldname] = $_GET[$fieldname];
                            break;
                        case 'post':
                            $fields['value'][$fieldname] = $_POST[$fieldname];
                            break;
                        case 'field':
                            //$fields['value'][$fieldname]=$fields['value'][$fieldname];
                            break;
                    }
                    //print $SUNSHINE_USER_NAME_VAR;
                    //print $fields['value'][$fieldname];
                    switch ($mode) {
                        case 'add':
                        case 'edit':
                            switch ($_GET['action']) {
                                case 'edit_reply':
                                    print_hidden($_SESSION[$SUNSHINE_USER_NAME_VAR], $hiddenname);
                                    break;
                                case 'edit_forward':
                                    print_hidden($fields['value'][$hiddenname], $hiddenname);
                                    break;
                                default:
                                    print_hidden($fields['value'][$hiddenname], $hiddenname);
                            }
                            break;
                        case 'view':
                            break;
                    }
                    $global_hidden_field = $fields['value'][$hiddenname];
                    break;
                case 'system_datetime':
                    switch ($mode) {
                        case 'add':
                        case 'edit':
                            print_hidden(date("Y-m-d H:i:s"), $fieldname);
                            break;
                        case 'view':
                            print_text_tr($html_etc[$tablename][$fieldname] . ":", trim($fields['value'][$fieldname]));
                            break;
                    }
                    break;
                case 'attchmentid':
                    switch ($mode) {
                        case 'add':
                            print_file($html_etc[$tablename][$fieldname] . ":", $fieldname);
                            break;
                        case 'edit':
                            $attachmentid_merge = trim($fields['value'][$fieldname]);
                            print_hidden($attachmentid_merge, $fieldname);
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:67,代码来源:newai_view.php

示例8: newaiReportSearch

function newaiReportSearch($fields, $list)
{
    global $html_etc, $tablename, $common_html;
    global $db, $return_sql_line, $columns;
    global $_POST, $_GET, $returnmodel, $primarykey_index;
    global $action_submit, $merge, $form_attribute;
    global $showlistfieldlistSearch, $showlistfieldfilterSearch, $showlistfieldfilter2Search;
    global $totalnumber;
    $totalnumber == "" ? $totalnumber = 30 : '';
    $showlistfieldlistArray = explode(',', $showlistfieldlistSearch);
    $showlistfieldfilterArray = explode(',', $showlistfieldfilterSearch);
    print_date_js();
    form_begin($fields['form']['name'], "action", 'GET');
    table_begin("450");
    global $tabletitle;
    print_hidden($_GET['action'] . "_data", "action");
    print_title($html_etc[$tablename][$tabletitle]);
    //print_title("<font color=green>".$common_html['common_html']['totalNumber'].":".$totalnumber."</font>");
    print_title($common_html['common_html']['totalNumber'] . ":" . $totalnumber);
    for ($i = 0; $i < sizeof($showlistfieldlistArray); $i++) {
        $fieldIndex = $showlistfieldlistArray[$i];
        $fieldName = $columns[$fieldIndex];
        $fieldText = $html_etc[$tablename][$fieldName];
        $mode = $showlistfieldfilterArray[$i];
        switch ($mode) {
            case '':
                break;
            case 'input':
                print_tr($fieldText . ":", $fieldName, '', $fields['other']['inputsize'], $fields['other']['inputcols'], $fields['other']['class'], $notnulltext, 'text', '', $i + 1);
                break;
            case 'date':
                print_report_date($fieldText . ":", $fieldName, '', $fields['other']['inputsize'], $fields['other']['inputcols'], $fields['other']['class'], $notnulltext, 'text', '', $i + 1);
                break;
        }
    }
    print_submit($common_html['common_html']['reportsearch'], 3, "");
    print "<TR><TD class=TableControl noWrap align=middle  colspan=\"3\">\n";
    print "<div align=\"center\">\n<INPUT class=SmallButton title=" . $common_html['common_html']['reportsearch'] . " type=submit value=\"" . $common_html['common_html']['reportsearch'] . "\" name=button>\n ";
    print "</TD></TR>\n";
    table_end();
    form_end();
}
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:42,代码来源:newai_report.php


注:本文中的print_hidden函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。