本文整理汇总了PHP中draw_form函数的典型用法代码示例。如果您正苦于以下问题:PHP draw_form函数的具体用法?PHP draw_form怎么用?PHP draw_form使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了draw_form函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: contact_element_1
function contact_element_1($link_type = 0)
{
if (check_perm_mod("contact", "r") == 1) {
$thissearch = load_fwobject("search", "contact", 1);
$output = draw_form($thissearch[form]);
if ($_GET[form_id] == $thissearch[form][name]) {
$output .= menage_search($thissearch[search]);
}
return $output;
} else {
return "";
}
}
示例2: add_new_se_to_service_group
/**
* Controller for a new_service request
* @global array $_POST only set if the browser has POSTed data
* @return null
*/
function add_new_se_to_service_group()
{
require_once __DIR__ . '/../../../../lib/Gocdb_Services/Factory.php';
// Check to see whether to show the link to "add a new SE to this virtual site"
if (!Factory::getConfigService()->IsOptionalFeatureSet("siteless_services")) {
throw new Exception("This feature isn't enabled on this GOCDB " . "instance. Configuration keyword: siteless_services");
}
if ($_POST) {
// If we receive a POST request it's to add a new SE
submit_form();
} else {
// If there is no post data, draw the New SE form
draw_form();
}
}
示例3: searchDocuments
<iframe style="display: inline;" id="Fr1" name="Frame1" src=' . $url . ' height="399" width="100%" frameborder=0 MARGINWIDTH="0" marginheight="0" ></iframe>
<br>
';
//FINE PAGINA
if (strlen($_GET[testo]) > 4) {
$resfile = searchDocuments($_GET[testo]);
if (count($resfile) == 0) {
$_GET[testo] = "";
} else {
$_GET[testo] = $resfile;
}
} else {
$_GET[testo] = "";
}
} else {
print draw_form($thissearch[form], $module, $error, $_GET);
}
} else {
print draw_form($thissearch[form], $module, "", $_GET);
//print menage_search($thissearch[search]);
}
} else {
$response[title] = FW_ERROR_NO_PERM;
$response[text] = FW_ERROR_NO_PERM_TXT;
$iserror = 1;
print draw_response($response);
}
$PAGE[PAGE_CONTENT] = ob_get_contents();
ob_end_clean();
template_define_elements();
final_render();
示例4: make_button
$PAGE[TXT_TITLE] = ADMIN_TER_PROC_ADD;
$response[title] = ADMIN_TER_PROC_ADD_DONE;
$response[text] = ADMIN_TER_PROC_ADD_DONE_TXT . "<br><br>" . make_button("ter_proc_view.php", ADMIN_TER_PROC_BACK_LIST);
$thisform[Fields][send][content] = "submit||" . ADMIN_TER_PROC_ADD . "||";
}
if ($_POST[form_id] == $thisform["name"]) {
if (isset($_POST[form_page])) {
$page = $_POST[form_page];
} else {
$page = 1;
}
$error = check_form($thisform, $_POST, $page);
//echo $error;
if ($error == 1) {
$manage = manage_post($thisform, $error, $_POST, $_GET[id]);
} else {
print draw_form($thisform, $module, $error, $_POST, $page);
}
if ($manage == 1) {
//echo $thisform["name"];echo $manage;
$page = $_POST[form_page] + 1;
print draw_form($thisform, $module, $error, $_POST, $page);
} elseif ($manage > 1) {
print draw_response($response);
}
} else {
print draw_form($thisform, $module, "", $result);
}
$PAGE[PAGE_CONTENT] = ob_get_contents();
ob_end_clean();
final_render();
示例5: template_init
<?php
include "../../../framework/framework.php";
// Define page specific text for template
$PAGE[TXT_TITLE] = CALENDAR_MENU_0;
$PAGE[PAGE_INTITLE] = CALENDAR_MENU_0;
$PAGE[PAGE_PICTITLE] = "ico_calendar_med.gif";
$module = "admin";
template_init(4);
template_define_elements();
ob_start();
//Include Form
$thissearch = load_fwobject("search", $module, 2);
if ($_GET[form_id] == $thissearch[form][name]) {
print draw_form($thissearch[form], $module, $error, $_GET);
} else {
print draw_form($thissearch[form]);
}
print menage_search($thissearch[search]);
$PAGE[PAGE_CONTENT] = ob_get_contents();
ob_end_clean();
final_render();
示例6: template_init
$fltProvvedimenti = $CONF[url_base] . $CONF[dir_modules] . "calendar/pages/app_search.php?form_id=listcont&form_page=1&title=&day_from[day]=&day_from[month]=&day_from[year]=&day_to[day]=&day_to[month]=&day_to[year]=&codice[text]=&codice[realval]=&ref_prat[text]=&ref_prat[realval]=&operatore[text]=avv1&operatore[realval]=&done[]=&type[]=2&type_app[]=¬e=&send=Cerca&fltr=provvedimenti";
$fltNote = $CONF[url_base] . $CONF[dir_modules] . "calendar/pages/app_search.php?form_id=listcont&form_page=1&title=&day_from[day]=&day_from[month]=&day_from[year]=&day_to[day]=&day_to[month]=&day_to[year]=&codice[text]=&codice[realval]=&ref_prat[text]=&ref_prat[realval]=&operatore[text]=avv1&operatore[realval]=&done[]=&type[]=3&type_app[]=¬e=&send=Cerca&fltr=note";
$Select = ' <span > Filtra gli impegni per: ' . "<select name='SelZoho' id='SelZoho' size='1' onchange='location.href=value' onFocus=(this.className='campo-focus-02') onBlur=(this.className='null') >\n\t\t<option selected='selected' value=''>Selezionare il filtro</option>\n\t\t<option value='{$fltInCorso}'>Dinamica: In corso</option>\n\t\t<option value='{$fltRiserva}'>Dinamica: Riserva / In attesa</option>\n\t\t<option value='{$fltCompletato}'>Dinamica: Completato</option>\n\t\t<option value='{$fltDaAggiornare}'>Dinamica: Da aggiornare</option>\n\t\t<option value='{$fltProvvedimenti}'>Tipo: Provvedimenti</option>\n\t\t<option value='{$fltNote}'>Tipo: Note</option>\n\t\t</option>\n\t\t</select></span >";
$module = "calendar";
template_init(10);
print $Select;
ob_start();
//Include Form
if (check_perm_mod($module, "r") == 1) {
$thissearch = load_fwobject("search", $module, 0);
if ($_GET[form_id] == $thissearch[form][name]) {
$error = check_form($thissearch[form], $_GET, $page);
if ($error == 1) {
print menage_search($thissearch[search]);
//menage_search1 in: FRAMEWORK/SEARCH.PHP
} else {
print draw_form($thissearch[form], $module, $error, $_GET);
}
} else {
print draw_form($thissearch[form], $module);
}
} else {
$response[title] = FW_ERROR_NO_PERM;
$response[text] = FW_ERROR_NO_PERM_TXT;
$iserror = 1;
print draw_response($response);
}
$PAGE[PAGE_CONTENT] = ob_get_contents();
ob_end_clean();
template_define_elements();
final_render();
示例7: normal
break;
default:
$layout = new normal($image_array);
break;
}
$profile_fbml = $layout->draw_profile($page_viewer);
$full_page_fbml = '<fb:header>Zooomr RSS Feed Reader: <a href="http://www.zooomr.com/photos/' . $zooomr_id . '">' . $rss->channel['title'] . '</a></fb:header><div style="margin:0 10px 0 10px;">';
//$full_page_fbml .= $layout->draw_app($user) . '</div>';
if ($user == $page_viewer) {
$full_page_fbml .= $layout->draw_app($page_viewer, 0) . '</div>';
} else {
$full_page_fbml .= $layout->draw_app($page_viewer, 1) . '</div>';
}
} else {
$full_page_fbml = show_app_error("Unknown Zooomr ID " . $zooomr_id . ". Maybe you need some <a href='http://apps.facebook.com/zooomr_rss_reader/help.php5'>help?</a>");
if ($user == $page_viewer) {
$full_page_fbml .= draw_form($user);
}
$profile_fbml = show_profile_error("Unknown Zooomr ID " . $zooomr_id . ". Maybe you need some <a href='http://apps.facebook.com/zooomr_rss_reader/help.php5'>help?</a>");
}
}
if ($user == $page_viewer) {
// write the data to the profile
//$facebook->api_client->profile_setFBML($profile_fbml, $user);
$return_code = $facebook->api_client->profile_setFBML(null, $user, $profile_fbml, $profile_fbml, $profile_fbml);
echo $return_code . "<br/>";
}
// write the form for configuring stuff
//include('form.inc');
// and echo it out for when this page is called direcly
echo $full_page_fbml;
示例8: mysql_connect
//including files with additional functions
if (file_exists('./forms.php')) {
include 'forms.php';
}
if (file_exists('./connect.php')) {
include 'connect.php';
}
//drawing main page with login results
echo "\n<html>\n\t<head> \n\t\t<meta charset='utf-8'/>\n\t\t<link rel=\"stylesheet\" href=\"../css/style.css\">\n\t\t<script src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js\"></script>\n\t\t<script src=\"../js/script.js\"></script>\n\t\t<script src=\"../js/validation.js\"></script>\n\t</head>\n\t<body>\n\t";
//creating db connection
$con = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD) or die("Failed to connect to MySQL: " . mysql_error());
//choosing db
auth($con);
//getting credentials entered by user and saving them to array
$fields = array('name' => htmlspecialchars($_POST['user']), 'pass' => htmlspecialchars($_POST['pwd']));
echo '<div>';
//select query, checking if entered credentials are present in DB
$data = mysql_query("select * from users where user='{$fields['name']}' and password='{$fields['pass']}' ");
//processing query results, saving data from DB to array
while ($row = mysql_fetch_assoc($data)) {
$user_info = array(1 => $row['user'], 2 => $row['password'], 3 => $row['firstname'], 4 => $row['lastname'], 5 => $row['email'], 6 => $row['card_num'], 7 => $row['cv2'], 8 => $row['exp_date'], 9 => $row['card_hold_num'], 10 => $row['card_amount']);
}
//if user name is empty - show appropriate message
if (!isset($user_info[1])) {
die('Entered credentials are wrong.');
} else {
draw_form($user_info);
}
echo "</div></body>";
//close DB connection
close_con($con);