亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? webform.module

?? 對于。Net最新的MVC開發方式提供自動對類的注入Webform
?? MODULE
?? 第 1 頁 / 共 4 頁
字號:
<?php// $Id: webform.module,v 1.48.2.5 2005/06/18 08:18:19 ullgren Exp $  /** This module provides a simple way to create forms and questionnaires    * for your website.   * The development of this module was sponsered by &Aring;F Industri AB,   * Open Source City and Karlstad University Library.   *   * @author Pontus Ullgren <ullgren@user.sourceforge.net>   * @package module_webform   * @copyright Pontus Ullgren 2003   *    **//** Hook Help - displayes help and general infomation about the module * @param section specifies the section to display help for. * @return a formated string containing the help output. **/function webform_help($section = "admin/help#webform") {  $output = "";    switch ($section) {  case 'admin/settings/webform':    $output = t("Webforms are forms and questionnaires. To add one select <strong>create content -&gt; webform</strong>. Below you can set different security and debug options.");    break;  case 'admin/help#webform':    $output = t("<p>This module lets you create forms or questionnaires and define there content. Submissions from these forms are stored in the database and optionaly also send by e-mail to a predefined address.</p><p>Here is how to create one:<ul> <li>Go to Create Content and add a webform</li> <li>Add a description that is displayed as a teaser and above the actual form.</li> <li>Add a confirmation message or redirect node that is to be displayed after a successful submission.</li> <li>Select which roles who should have submission access to this form (roles that have the &quot;use all webforms&quot; permision can allways use a webform).</li> <li>Add one or more components to your form.</li> <li>Optionaly add a email address to which submissions will be send. If no email address is specified no email will be send when submissions are made through the form.</li> <li>Optionally select an email component that will be used to populate the return email address on any sent email.</ul> <li>Optionally select a textfield component that will be used to populate the subject email field on any sent email.</ul></ul>Help on adding and how to configure the components will be shown after adding your first component.</p><p>On user submissions the form content is stored in the database table <i>webform_submitted_data</i> as key-value pairs. Apart from the form fields the following &quot;special&quot; fields are added:<ul>  <li> __userid : UID of the submiting user.</li>  <li> __timestamp : UNIX timestamp for when the submission occured.</li>  <li> __remotehost : IP or name of the remote host from which the submission came.</li>  <li> __useragent : What user agent (browser) the user used upon submitting the data.</li></ul>");    break;  case 'admin/modules#description':    $output = t("Enables the creation of forms and questionnaires.");    break;  case 'node/add#webform':    $output = t("A webform can be a questionnaires, contact or request forms. It can be used to let visitors make contact, register for a event or to enable a complex survey.");    break;  case 'webform/helptext#variables':    $output = t('Available variables are: %username, %useremail, %site, %date.');    $output .= ' '.t('You can also use %server[key] to add any of the special PHP <a href="http://www.php.net/reserved.variables#reserved.variables.server">$_SERVER</a> variables and %get[key] to create prefilled forms from from the <a href="http://www.php.net/reserved.variables#reserved.variables.get">URL</a>.');    if ( module_exist('profile') ) {      $output .= t('If you are using the profiles module, you can also access all profile data using the syntax %profile[form_name]. If you for example have a profile value named profile_city, add the varible %profile[profile_city].');    }    break;  }  return $output;}function webform_perm() {  return array("maintain webforms", "create webforms", "use all webforms");}/** * Define the human-readable name of a node type. */function webform_node_name($node) {  return t('webform');}function webform_access($op, $node) {  global $user;    if ($op == "view") {    if ( user_access("use all webforms") ) {      return $node->status;    }    else if ( is_array($node->roles) ) {      foreach ($node->roles as $rid) {        if( isset($user->roles[$rid]) ) {          return $node->status;        }      }    }    return false;  }    if ($op == "create") {    return user_access("create webforms");  }    if ($op == "update") {    return user_access("maintain webforms");  }    if ($op == "delete") {    return user_access("maintain webforms");  }  return false;}function webform_insert($node) {  global $user;  // insert    _webform_database_lazy_update();  // Lazy Initializer  db_query("INSERT INTO {webform} (nid, confirmation, email, email_from, email_subject) VALUES (%d, '%s', '%s', '%s', '%s')",           $node->nid, $node->confirmation, $node->email, $node->email_from, $node->email_subject);    if( is_array($node->webformcomponents_name) && !empty($node->webformcomponents_name)) {    foreach($node->webformcomponents_name as $key => $name) {      db_query("INSERT INTO {webform_component} (nid, cid, name, type, value, extra, mandatory, weight) ".               " VALUES (%d, %d, '%s', '%s', '%s', '%s', %d, %d)",               $node->nid, $key, $name,                $node->webformcomponents_type[$key],               $node->webformcomponents_value[$key],                $node->webformcomponents_extra[$key],                ($node->webformcomponents_mandatory[$key]?1:0),                $node->webformcomponents_weight[$key]);    }  }    _webform_role_node_delete($node->nid);    if (is_array($node->roles)) {    // Filter all empty roles    foreach ($node->roles as $rid) {      if($rid != 0)        $roles[] = $rid;    }    // Add the users group if it isn't allready checked.    if(!is_array($roles) || !in_array($user->rid, $roles)) {      $roles[] = $user->rid;    }        if (!empty($roles)) {      foreach ($roles as $rid) {        db_query("INSERT INTO {webform_role_node} (nid, rid) VALUES (%d, %d)", $node->nid, $rid);      }    }  }}function webform_update($node) {  // Update     // Lazy Initializer  _webform_database_lazy_update();    db_query("UPDATE {webform} SET confirmation = '%s', email = '%s', email_from = '%s', email_subject = '%s' ".           "WHERE nid = %d", $node->confirmation, $node->email, trim($node->email_from), trim($node->email_subject), $node->nid);    db_query("DELETE FROM {webform_component} WHERE nid = %d", $node->nid);    if( is_array($node->webformcomponents_name) && !empty($node->webformcomponents_name)) {    foreach($node->webformcomponents_name as $key => $name) {         db_query("INSERT INTO {webform_component} (nid, cid, name, type, value, extra, mandatory, weight) ".               " VALUES (%d, %d, '%s', '%s', '%s', '%s', %d, %d)",               $node->nid, $key, $name,                $node->webformcomponents_type[$key],               $node->webformcomponents_value[$key],                $node->webformcomponents_extra[$key],                ($node->webformcomponents_mandatory[$key]?1:0),                $node->webformcomponents_weight[$key]);    }  }    _webform_role_node_delete($node->nid);    if ($node->roles) {    foreach ($node->roles as $rid) {      if($rid != 0)        db_query("INSERT INTO {webform_role_node} (nid, rid) VALUES (%d, %d)", $node->nid, $rid);    }  } }function webform_delete(&$node) {  // delete   db_query("DELETE FROM {webform} WHERE nid = %d", $node->nid);  db_query("DELETE FROM {webform_component} WHERE nid = %d", $node->nid);  _webform_role_node_delete($node->nid);  watchdog('webform','webform "' . $node->title . '" deleted', WATCHDOG_NOTICE);}function webform_load($node) {  // load     // Lazy initializer    _webform_database_lazy_update();    $page = db_fetch_object(db_query("SELECT confirmation, email, email_from, email_subject FROM {webform} WHERE nid = %d", $node->nid));    $result = db_query('SELECT cid, name, type, value, extra, mandatory, weight '.                     ' FROM {webform_component} '.                     ' WHERE nid = %d '.                     ' ORDER BY weight, name', $node->nid);  while($c = db_fetch_array($result)) {    $page->webformcomponents_name[$c['cid']] = $c['name'];    $page->webformcomponents_type[$c['cid']] = $c['type'];    $page->webformcomponents_value[$c['cid']] = $c['value'];    $page->webformcomponents_extra[$c['cid']] = $c['extra'];    $page->webformcomponents_mandatory[$c['cid']] = $c['mandatory'];    $page->webformcomponents_weight[$c['cid']] = $c['weight'];  }    $result = db_query("SELECT rid FROM {webform_role_node} WHERE nid = %d", $node->nid);  while($rid = db_fetch_array($result)) {    $page->roles[]=$rid['rid'];  }    return $page;}function webform_settings(){    $installed_version  = variable_get('webform_version', array('text'=> 'Unknown', 'build' => 1));  $current_version = _webform_version();    if ( $installed_version['build'] < $current_version['build'] ) {    $output .= '<div>'.l(t('Update from version %a to version %b',                            array( '%a' => $installed_version['text'], '%b' => $current_version['text']) ),                          'webform/upgrade').'</div>';  }    $output .= form_select(t("Allow cross site posting"), "webform_allow_cross_site_posting",                         variable_get("webform_allow_cross_site_posting", 0),                         array(0 => t('Yes'), 1 => t('No')),                         t("Allow postings to your webforms that do not originate from your site's domain."));    $output .= form_select(t("Webforms Debug"), "webform_debug",                         variable_get("webform_debug", 0),                         array(0 => "OFF", 1 => "Log submissions", 2 => "Full debug"),                         '<br />'.t("DEBUG for the webform module") . '<br />' .                         t('Set this option to "Log submissions" to log all submissions in the watchdog. Set it to "Full debug" to print debug info on submission. You probably want to leave this option on "OFF".'));    $output .= form_checkbox(t("Show main webform menu"), "webform_show_main_menu",1,                         variable_get("webform_show_main_menu", true),                         t('Select the visibility of the main webform item on the main menu'));  return $output;} // end function webform_settingsfunction webform_validate(&$node) {    if( isset($_POST['edit_component']) ) {    // If we are adding a new componenet or removing a old one     // we have to do what the framework would do for us so we don't lose     // information.    if( isset($_POST['edit']) ) {      $node = array2object($_POST['edit']);    }    _webform_editfield();    exit(0);  }    if( isset($_POST['webform_edit_done']) ) {    $old_edit = unserialize($_POST['old_edit']);    $new_edit = $_POST['edit'];    if ( !is_array($new_edit) ) $new_edit =array();    if ( !is_array($old_edit) ) $old_edit =array();    $edit = array_merge($new_edit, $old_edit);    // If we are adding a new componenet or removing a old one     // we have to do what the framework would do for us so we don't loose     // information.    $node = array2object($edit);        // We have just edited component add it to the node    $node->webformcomponents_name[$node->webform_edited_key] = $node->webform_edited_name;    $node->webformcomponents_type[$node->webform_edited_key] = $node->webform_edited_type;    $node->webformcomponents_value[$node->webform_edited_key] = $node->webform_edited_default;    $node->webformcomponents_extra[$node->webform_edited_key] = serialize($node->webform_edited_extra);    drupal_set_message(t('The form component has been changed. Remember to press Submit on the bottom of this form to save your changes.'));  }    if(isset($_POST['delete_component']) && isset($_POST['edit']['webform_checked_component']) ) {    unset($node->webformcomponents_name[$_POST['edit']['webform_checked_component']]);    drupal_set_message(t('The form component has been deleted. Remember to press Submit on the bottom of this form to save your changes.'));  }    // Validate the body field.  if (isset($node->body)) {    if (!$node->body) {      form_set_error('body', t('You have to specify a form description.'));      return false;    }  }    // Validate confirm field  if (isset($node->confirmation)) {    if (!$node->confirmation) {      form_set_error('confirmation', t('You have to specify a confirmation message.'));      return $false;    }  }    // TODO: Put email validates here    return true;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩一区二区三区四区| 午夜电影一区二区三区| 亚洲综合区在线| 国产在线精品免费| 欧美日韩一区高清| 中文字幕中文乱码欧美一区二区| 午夜精品一区在线观看| av亚洲精华国产精华| 精品久久人人做人人爰| 亚洲国产精品久久久久婷婷884 | 精品国偷自产国产一区| 亚洲欧美国产毛片在线| 国产精品91xxx| 欧美v日韩v国产v| 日本女优在线视频一区二区| 欧美影院一区二区| 亚洲丝袜精品丝袜在线| 国产白丝网站精品污在线入口| 91精品国产综合久久久久久漫画| 亚洲日本欧美天堂| 91精品一区二区三区久久久久久| 亚洲精品你懂的| 成人免费看片app下载| 久久综合色婷婷| 美女国产一区二区| 日韩一区二区在线免费观看| 亚洲高清免费观看高清完整版在线观看| av一区二区不卡| 亚洲欧洲99久久| 99精品热视频| 亚洲日本在线a| 日本韩国一区二区三区| 亚洲色图欧美偷拍| 91黄色免费看| 亚洲大片精品永久免费| 678五月天丁香亚洲综合网| 亚洲va国产天堂va久久en| 欧美精品少妇一区二区三区| 亚洲成人av免费| 欧美日韩aaaaa| 久久av老司机精品网站导航| 精品国产乱码久久| 国产suv精品一区二区883| 日本一区二区免费在线| 不卡av电影在线播放| 亚洲视频一区二区在线| 欧美午夜电影网| 午夜天堂影视香蕉久久| 欧美成人性福生活免费看| 狠狠色丁香婷婷综合久久片| 久久精品人人爽人人爽| 91性感美女视频| 亚洲成人手机在线| 亚洲第一激情av| 欧美一级爆毛片| 国产成人午夜99999| 日韩美女久久久| 91精品国产综合久久蜜臀| 国产成人在线免费| 亚洲一区中文日韩| 欧美白人最猛性xxxxx69交| 国产一区不卡视频| 视频一区视频二区中文| 日韩免费高清电影| 国产精品一区二区免费不卡| 国产精品污网站| 精品1区2区3区| 国产一区二区三区免费观看| 综合在线观看色| 日韩无一区二区| 91在线精品一区二区三区| 青青草原综合久久大伊人精品优势| 久久综合一区二区| 在线视频亚洲一区| 国产乱码精品一区二区三区五月婷| 日韩毛片视频在线看| 日韩女优视频免费观看| 色婷婷精品大在线视频 | 精品国产乱码久久久久久免费| 丁香啪啪综合成人亚洲小说 | 国产精品第四页| 欧美一级一区二区| 色综合色综合色综合| 精品综合久久久久久8888| 一区二区欧美国产| 国产精品女上位| 亚洲精品一线二线三线| 欧美日韩在线精品一区二区三区激情 | 精品久久一区二区三区| 欧美日韩在线三级| 色综合欧美在线视频区| 国产成人免费视频精品含羞草妖精 | 亚洲精品一线二线三线| 日韩毛片视频在线看| ww久久中文字幕| 欧美一区二区视频网站| 欧美在线免费播放| 一本色道久久综合亚洲91| 国产a视频精品免费观看| 免费在线观看视频一区| 一个色综合网站| 亚洲人成伊人成综合网小说| 国产欧美在线观看一区| 久久久五月婷婷| 精品国产髙清在线看国产毛片| 欧美日韩另类一区| 欧美三级韩国三级日本三斤| 色婷婷综合久久久久中文一区二区 | 视频一区国产视频| 一级中文字幕一区二区| 一区二区三区成人在线视频| 最新国产の精品合集bt伙计| 国产精品久久久久7777按摩| 国产片一区二区| 国产精品三级久久久久三级| 欧美激情艳妇裸体舞| 国产日韩欧美一区二区三区乱码 | 欧美日韩中文精品| 91成人免费电影| 色先锋aa成人| 欧美视频日韩视频在线观看| 国产精品亲子伦对白| 国产视频一区二区三区在线观看| 久久先锋影音av鲁色资源| 久久久久久久综合色一本| 久久久精品国产免大香伊| 亚洲国产成人在线| 亚洲视频中文字幕| 亚洲国产日韩a在线播放| 欧美aaaaa成人免费观看视频| 免费观看日韩av| 国产成人免费视频一区| 色婷婷av一区二区三区gif| 欧美无乱码久久久免费午夜一区| 欧美日韩aaaaa| 欧美精品一区二区三区四区 | 成人av网站免费观看| 91丨porny丨国产入口| 欧美视频在线播放| 日韩欧美国产综合| 国产精品免费看片| 亚洲一级二级三级| 国产一区二区三区黄视频 | www国产精品av| 亚洲欧洲成人自拍| 日日摸夜夜添夜夜添国产精品| 久久成人久久爱| 不卡的电视剧免费网站有什么| 欧洲精品在线观看| 精品人在线二区三区| 国产精品美女久久久久久久 | 欧美日韩精品三区| 精品美女一区二区| 亚洲激情图片一区| 极品少妇xxxx精品少妇偷拍| 成年人国产精品| 日韩一区和二区| 亚洲男人天堂一区| 精品一二三四在线| 在线免费亚洲电影| 国产日韩精品一区二区三区| 亚洲综合一二区| 粉嫩av亚洲一区二区图片| 欧美精品一二三| 中文字幕中文字幕一区二区| 毛片av一区二区| 欧美综合欧美视频| 国产欧美日韩精品一区| 亚洲国产va精品久久久不卡综合 | 欧洲亚洲国产日韩| 久久久久久97三级| 日韩电影在线免费观看| 91天堂素人约啪| 久久精品视频在线免费观看| 日韩—二三区免费观看av| 91久久香蕉国产日韩欧美9色| 国产午夜精品理论片a级大结局 | 亚洲女人的天堂| 国产成人精品综合在线观看 | 日本视频一区二区三区| 91蜜桃在线观看| 国产精品人人做人人爽人人添| 免费观看一级欧美片| 欧美日韩卡一卡二| 日本一区免费视频| 亚洲精品美国一| 国产欧美精品一区aⅴ影院| 欧美一级电影网站| 亚洲综合在线五月| 美女一区二区视频| 欧美日韩高清一区二区三区| 自拍偷拍欧美精品| www.日韩av| 综合亚洲深深色噜噜狠狠网站| 国产成人丝袜美腿| 国产视频一区不卡| 国产精品一区二区久久不卡| 国产亚洲精品久| 国产99久久久精品| 国产精品素人视频|