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


PHP FormHandler::textfield方法代码示例

本文整理汇总了PHP中FormHandler::textfield方法的典型用法代码示例。如果您正苦于以下问题:PHP FormHandler::textfield方法的具体用法?PHP FormHandler::textfield怎么用?PHP FormHandler::textfield使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FormHandler的用法示例。


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

示例1: add

 function add()
 {
     if (isset($_GET['id'])) {
         echo "<span class=\"pageHeading\">Wijzigen categorie</span><BR><BR>";
     } else {
         echo "<span class=\"pageHeading\">Invoeren nieuwe categorie</span><BR><BR>";
     }
     $form = new FormHandler();
     $form->PermitEdit();
     $form->TableSettings('100%', 0, 1, 2, 'font-family:Verdana;font-size:10px;border: 1px solid grey');
     //$form->AddHTML($myhtml);
     // set the database data (data from another file or so ? )
     $form->UseDatabase(DB_DATABASE, "categories");
     $form->textfield("Naam", "categories_name", "", "50");
     $form->SubmitBtn("Opslaan", false, "Annuleren");
     $form->OnSaved("doRun");
     // flush the form
     $form->FlushForm();
 }
开发者ID:TimvanSteenbergen,项目名称:rethmeier,代码行数:19,代码来源:categories.php

示例2: doRun

<?php

// include the class
//include("includes/classes/class.FormHandler.php");
include "style.php";
// make a new $form object
$form = new FormHandler();
// permit editing
$form->PermitEdit();
echo "<span class=\"pageHeading\">Administratie gebruiker toevoegen</span><BR><BR>";
$form->TableSettings('100%', 0, 1, 2, 'font-family:Verdana;font-size:10px;border: 1px solid grey');
//$form->AddHTML($myhtml);
// set the database data (data from another file or so ? )
$form->UseDatabase(DB_DATABASE, "admin_users");
$form->textfield("Naam", "USER_NAME", "", "50");
$form->textfield("Loginnaam", "USER_LOGIN", "", "50");
$form->textfield("Wachtwoord", "USER_PASS", "", "50");
$form->textfield("E-mail", "USER_EMAIL", "", "50");
$form->hiddenfield("USER_IP", $_SERVER['REMOTE_ADDR']);
// button beneath it (submit, reset and cancel!)
$form->SubmitBtn("Opslaan", false, "Annuleren");
// what to do after saving ?
$form->OnSaved("doRun");
// flush the form
$form->FlushForm();
// 'commit after form' function
function doRun($id, $data)
{
    return "<META HTTP-EQUIV=\"Refresh\" Content= \"0; URL=index.php?page=adminusers\">";
}
?>
开发者ID:TimvanSteenbergen,项目名称:rethmeier,代码行数:31,代码来源:inc_newadminuser.php

示例3: add

    function add()
    {
        include DIR_WS_FUNCTIONS . '/browser_detection.php';
        $a_browser_data = browser_detection('full');
        //	print_r($a_browser_data);
        if ($a_browser_data[0] == 'moz') {
            echo "<script language=\"JavaScript\" type=\"text/JavaScript\" src=\"../js/media_ff.js\"></script>";
        } else {
            echo "<script language=\"JavaScript\" type=\"text/JavaScript\" src=\"../js/media.js\"></script>";
        }
        ?>
	<script type="text/javascript" src="../js/embed-object.js"></script>
	<script language="JavaScript" type="text/JavaScript" src="../js/swfobject.js"></script>
	<script language="JavaScript">
	function setImage(image){
	//	document.getElementById('PICTURE').value = image.substr(2,image.length);
	}
	function setMovie(movie, id){
		if (id == 1){
			document.getElementById('SOURCE_FILE').value = movie;
		}
		if (id == 2){
		//	document.getElementById('SOURCE_FILE2').value = movie;		
		}
		if (id == 3){
		//	document.getElementById('SOURCE_FILE3').value = movie;		
		//	document.getElementById('SOURCE_FILE2').value = movie.replace("600","2000");
			document.getElementById('SOURCE_FILE').value = movie.replace("600","1000");
		}
	}
	function setTrailer(trailer){
	//	document.getElementById('TRAILER').value = trailer.substr(2,trailer.length);
	}
	</script>
<?php 
        if (isset($_GET['id'])) {
            echo "<span class=\"pageHeading\">Wijzigen product</span><BR><BR>";
        } else {
            echo "<span class=\"pageHeading\">Invoeren nieuw product</span><BR><BR>";
        }
        $form = new FormHandler();
        $form->PermitEdit();
        $form->TableSettings('100%', 0, 1, 2, 'font-family:Verdana;font-size:10px;border: 1px solid grey');
        //$form->AddHTML($myhtml);
        // set the database data (data from another file or so ? )
        $form->UseDatabase(DB_DATABASE, "products");
        $form->textfield("Titel", "TITLE", "", "50");
        $form->TextArea("Synopsis algemeen", "SHORT_SYNOPSIS", "", 47);
        //$form->textfield("<a href=# onclick=window.open(\"./mftp/index.php?film=1&currentDir=voetbal_supporter\",\"film\",\"width=560,height=350,left=250,top=200\")><U>Film locatie - 1Mbps</U></a>:", "SOURCE_FILE", "", "50");
        //$form->textfield("ContentID 1Mbps", "CONTENTID", "", "5");
        if ($this->parent->module_exists("categories")) {
            $categories = $GLOBALS["categories"]->contents();
            $form->SelectField("Categorie", "CATEGORY_ID", $categories, true);
        }
        //reset
        if (isset($_GET['id'])) {
            $query = "SELECT source_file,  TITLE FROM products WHERE products.product_id = '" . $_GET['id'] . "'";
            $exec2 = mysql_query($query);
            $row2 = mysql_fetch_array($exec2);
            mysql_data_seek($exec2, 0);
            $popupHtml = "";
            $image_url = "../images/screens/";
            $image_name = $row2['source_file'];
            $image_name = substr($image_name, 0, strlen($image_name) - 4);
            $popupHtml .= "<tr><td colspan=4><table cellspacing=\"2\" cellpadding=\"0\"><tr>";
            for ($x = 0; $x < 5; $x++) {
                $popupHtml .= "<td height=\"100\" align=\"center\" valign=\"middle\">";
                $image = $image_name . "_" . ($x + 1) . ".jpg";
                $popupHtml .= "<img src=\"" . $image_url . $image . "\" width=\"100\" border=\"0\">";
                $popupHtml .= "</td>";
            }
            $popupHtml .= "</tr></table></td></tr>";
            $sourcefile = "http://217.114.103.140/content/bbaltv/" . $row2['source_file'];
            $flash = str_replace(".wmv", ".flv", $row2['source_file']);
            $flash_sourcefile = "http://217.114.103.140/content/bbaltv/" . $flash;
            $image = "http://www.bbal.tv/images/screens/" . $_GET['id'] . "_2.jpg";
            if (file_exists($flash_sourcefile)) {
                $popupHtml .= "<tr>";
                $popupHtml .= "<td colspan=3 width=\"390\" align=\"left\"><p id=\"flvplayer\"><a href=\"http://www.macromedia.com/go/getflashplayer\">Get the Flash Player</a> to see this player.</p>";
                $popupHtml .= "<script type=\"text/javascript\">";
                $popupHtml .= "var so = new SWFObject('../flash/flvplayer.swf','player','390','290','7');";
                $popupHtml .= "so.addParam(\"allowfullscreen\",\"true\");";
                $popupHtml .= "so.addVariable(\"file\",\"" . $flash_sourcefile . "\");";
                $popupHtml .= "so.addVariable(\"image\", \"" . $image . "\");";
                $popupHtml .= "so.addVariable(\"displayheight\",\"290\");";
                $popupHtml .= "so.addVariable(\"lightcolor\",\"0x557722\");";
                $popupHtml .= "so.addVariable(\"backcolor\",\"0x363795\");";
                $popupHtml .= "so.addVariable(\"frontcolor\",\"0xCCCCCC\");";
                $popupHtml .= "so.write('flvplayer');";
                $popupHtml .= "</script>";
                $popupHtml .= "</td></tr>";
            }
            $form->AddHTML($popupHtml);
        }
        if ($this->parent->module_exists("upload")) {
            $files = $GLOBALS["upload"]->contents();
            array_unshift($files, "");
            $form->SelectField("Uploaded file", "UPLOAD_FILE", $files, true);
            //print_r($files);
            //		$form->AddHTML($uploadHtml);
//.........这里部分代码省略.........
开发者ID:TimvanSteenbergen,项目名称:rethmeier,代码行数:101,代码来源:products.php

示例4: FormHandler

<?php

echo "<span class=\"pageHeading\">Tekst animaties</span><BR><BR>";
$_GET['id'] = 1;
$form = new FormHandler();
$form->PermitEdit();
$form->TableSettings('100%', 0, 1, 2, 'font-family:Verdana;font-size:10px;');
//$form->AddHTML($myhtml);
// set the database data (data from another file or so ? )
$form->UseDatabase(DB_DATABASE, "teksten");
//$products = $GLOBALS["products"]->contents();
//$form->AddHTML("Nederlands<br/><br/>");
$form->textfield("Nederlandse Promotekst 1", "TEXT1", "", "90");
$form->textfield("Nederlandse Promotekst 2", "TEXT2", "", "90");
$form->textfield("Nederlandse Promotekst 3", "TEXT3", "", "90");
$form->textfield("Nederlandse Promotekst 4", "TEXT4", "", "90");
$form->textfield("Nederlandse Promotekst 5", "TEXT5", "", "90");
$form->textfield("Nederlandse Promotekst 6", "TEXT6", "", "90");
$form->textfield("Nederlandse Promotekst 7", "TEXT7", "", "90");
$form->textfield("Nederlandse Promotekst 8", "TEXT8", "", "90");
$form->textfield("Nederlandse Promotekst 9", "TEXT9", "", "90");
$form->textfield("Nederlandse Promotekst 10", "TEXT10", "", "90");
//$form->AddHTML("Engels<br/><br/>");
$form->textfield("Engelse Promotekst 1", "EN1", "", "90");
$form->textfield("Engelse Promotekst 2", "EN2", "", "90");
$form->textfield("Engelse Promotekst 3", "EN3", "", "90");
$form->textfield("Engelse Promotekst 4", "EN4", "", "90");
$form->textfield("Engelse Promotekst 5", "EN5", "", "90");
$form->textfield("Engelse Promotekst 6", "EN6", "", "90");
$form->textfield("Engelse Promotekst 7", "EN7", "", "90");
$form->textfield("Engelse Promotekst 8", "EN8", "", "90");
开发者ID:TimvanSteenbergen,项目名称:rethmeier,代码行数:31,代码来源:inc_teksten.php

示例5: add

 function add()
 {
     if (isset($_GET['id'])) {
         echo "<span class=\"pageHeading\">Wijzigen distributie</span><BR><BR>";
     } else {
         echo "<span class=\"pageHeading\">Invoeren nieuwe distributie</span><BR><BR>";
     }
     $form = new FormHandler();
     $form->PermitEdit();
     $form->TableSettings('100%', 0, 1, 2, 'font-family:Verdana;font-size:10px;border: 1px solid grey');
     //$form->AddHTML($myhtml);
     // set the database data (data from another file or so ? )
     $form->UseDatabase(MYRIAD_DATABASE_NAME, "customers");
     $form->textfield("Naam", "name", "", "50");
     $form->HiddenField("srcHost", TRANSCODER_HOSTNAME);
     $form->HiddenField("srcUsername", TRANSCODER_USERNAME);
     $form->HiddenField("srcPassword", TRANSCODER_PASSWORD);
     $form->HiddenField("srcFolder", TRANSCODER_SRC_FOLDER);
     $form->HiddenField("destHost", MEDIASERVER_HOSTNAME);
     $form->HiddenField("destUsername", MEDIASERVER_USERNAME);
     $form->HiddenField("destPassword", MEDIASERVER_PASSWORD);
     $form->textfield("Doelmap", "destFolder", "", "50");
     $query = "SELECT * FROM OUTPUTFORMAT";
     $exec = mysql_query($query);
     $teller = 0;
     while ($row = mysql_fetch_array($exec)) {
         $valueArray[$row['id']] = $row['naam'];
     }
     $form->SelectField("Output Formaat", "outputFormatId", $valueArray, true);
     $form->HiddenField("conversionProgramId", "0");
     $form->HiddenField("pause", "10");
     $form->textfield("Aantal Screenshots", "numberOfStills", "", "50");
     $form->CheckBox("DRM Beveiliging", "drmProtection");
     $form->textfield("URL Gelukt", "successURL", "", "50");
     $form->textfield("URL Mislukt", "failureURL", "", "50");
     if ($this->parent->module_exists("brandmerk")) {
         //			$brandmerks = $GLOBALS["brandmerk"]->contents();
         $conn_id = ftp_connect(TRANSCODER_HOSTNAME);
         // login with username and password
         $login_result = ftp_login($conn_id, TRANSCODER_USERNAME, TRANSCODER_PASSWORD);
         $valueArray = array();
         $valueArray[] = "Geen brandmerk";
         $img_array = ftp_nlist($conn_id, TRANS_IMAGES_DIR);
         for ($x = 0; $x < count($img_array); $x++) {
             $valueArray[$img_array[$x]] = $img_array[$x];
         }
         ftp_close($conn_id);
         $form->SelectField("Brandmerk", "companyLogo", $valueArray, true);
     }
     if ($this->parent->module_exists("betalingen")) {
         $form->SelectField("Betaal categorie", "paymentCategoryId", $paymentarray, true);
     }
     $valueArray = array();
     $valueArray[1] = "Ja";
     $valueArray[0] = "Nee";
     $form->SelectField("Bron opschonen", "clean", $valueArray, true);
     $form->SubmitBtn("Opslaan", false, "Annuleren");
     $form->OnSaved("doRun");
     // flush the form
     $form->FlushForm();
 }
开发者ID:TimvanSteenbergen,项目名称:rethmeier,代码行数:61,代码来源:distributions.php


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