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


PHP Form::addHtml方法代码示例

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


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

示例1: elseif

    echo '<div id="inset">If this address is incorrect please <a href="javascript:cancelResponse();">try again</a></div>';
    echo $form->renderForm();
    exit;
} elseif ($lookup_type == "manual") {
    // make the form
    $formData = array($scope . '_pcid' => array('type' => 'hidden', 'value' => '-1'), $scope . '_addr1' => array('type' => 'text', 'label' => 'House Number', 'required' => 2, 'attributes' => array('class' => 'addr'), 'function' => 'format_street'), $scope . '_addr2' => array('type' => 'text', 'label' => 'Building Name', 'required' => 1, 'attributes' => array('class' => 'addr'), 'function' => 'format_street'), $scope . '_addr3' => array('type' => 'text', 'label' => 'Street', 'required' => 2, 'attributes' => array('class' => 'addr'), 'function' => 'format_street'), $scope . '_addr5' => array('type' => 'text', 'label' => 'City or County', 'required' => 2, 'attributes' => array('class' => 'addr'), 'function' => 'format_street'), $scope . '_postcode' => array('type' => 'text', 'label' => 'Postcode', 'required' => 2, 'attributes' => array('class' => 'pc', 'maxlength' => 9), 'function' => 'format_postcode'), $scope . '_country' => array('type' => 'select', 'label' => 'Country', 'value' => $default_country, 'required' => 2, 'options' => db_lookup("pro_country", "country", "array"), 'attributes' => array('class' => 'addr')));
    $form = new Form();
    $form->addData($formData, $_GET);
    $formName = "form2";
    $form->addHtml($form->addDiv($form->makeField("submit", $formName, "", "Save Changes", array('class' => 'submit'))));
    echo '<div id="inset">If this address is incorrect please <a href="javascript:cancelResponse();">try again</a></div>';
    echo $form->renderForm();
    exit;
} else {
    $Data = $postcode->lookup($lookup_type, $search_string, "data");
    if (count($Data) == 1) {
        foreach ($Data as $keyd => $data) {
            $udprn = $data["id"];
        }
        header("Location:?lookup_type=udprn&search_string=" . $udprn . "&scope=" . $scope);
        exit;
    } else {
        $form = new Form();
        $form->addHtml($form->addLabel("select", "Select Property", $postcode->output_list($Data)));
        $buttons = $form->makeField("button", "button", "", "Use Selected", array('class' => 'submit', 'onClick' => 'ajax_select_address(this.id);'));
        $buttons .= $form->makeField("button", "tryagain", "", "Try Again", array('class' => 'button', 'onClick' => 'cancelResponse();'));
        $form->addHtml($form->addDiv($buttons));
        echo $form->renderForm();
        exit;
    }
}
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:ajax_postcode.php

示例2: array

     // app_id is used when arranging a viewing, adding more clients to the viewing (optional)
     $form->addField("hidden", "app_id", "", $_GET["app_id"]);
     $form->addField("hidden", "searchLink", "", $_SERVER['SCRIPT_NAME'] . '?' . $_SERVER['QUERY_STRING']);
     // carry is for carrying return link through (e.g. when adding vendor to deal, we still want to retain the searchLink)
     $form->addField("hidden", "carry", "", $_GET["carry"]);
     $form->addHtml("<fieldset>\n");
     $form->addHtml('<div class="block-header">Select Client</div>');
     $form->addHtml($form->addLabel('cli_id', 'Existing Clients', $form->makeField("select", "cli_id", "", "", array('size' => '6', 'style' => 'width:400px;', 'onDblClick' => 'document.forms[0].submit();'), $options)));
     $form->addHtml($form->addDiv($form->makeField("submit", "", "", "Use Selected Client", array('class' => 'submit'))));
     #$form->addHtml($form->addDiv($form->makeField("button","","","Create New Client",array('class'=>'submit','onClick'=>'location.href=\''.$goto_notfound.'?'.http_build_query($terms).'&dest='.$_GET["dest"].'\';'))));
     $form->addHtml("</fieldset>\n");
     $form->addHtml("</div>\n");
 }
 $form2 = new Form();
 $form2->addForm("form", "post", $PHP_SELF);
 $form2->addHtml("<div id=\"standard_form\">\n");
 $form2->addField("hidden", "stage", "", "2");
 $form2->addField("hidden", "action", "", "new_client");
 $form2->addField("hidden", "dest", "", $_GET["dest"]);
 $form2->addField("hidden", "dea_id", "", $_GET["dea_id"]);
 $form2->addField("hidden", "app_id", "", $_GET["app_id"]);
 $form2->addField("hidden", "carry", "", $_GET["carry"]);
 $form2->addHtml("<fieldset>\n");
 $form2->addLegend('New Client');
 $form2->addData($formData1, $_GET);
 $form2->addRow('radio', 'p2c_type', 'Address Type', 'Home', '', db_enum("pro2cli", "p2c_type", "array"));
 if (!$_GET["pro_pro_id"]) {
     $form2->ajaxPostcode("by_freetext", "pro");
 } else {
     $form2->addData($formData2, $_GET);
     $form2->addHtml($form2->addDiv($form->makeField("submit", "", "", "Save Changes", array('class' => 'submit'))));
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:client_lookupMYSQL.php

示例3: array

        $status_attributes = array('style' => 'width:300px', 'onChange' => 'controlUnderOffer(this,\'dea_status\',\'' . $dea_status . '\');');
    } else {
        $status_attributes = array('style' => 'width:300px');
    }
    // reset status attributes for LETTINGS
    if ($_SESSION["auth"]["default_scope"] == 'Lettings') {
        $status_attributes = array('style' => 'width:300px');
    }
    $formData4 = array('dea_status' => array('type' => 'select', 'label' => 'Status', 'value' => $dea_status, 'options' => $statuses, 'attributes' => $status_attributes), 'dea_notes_sot' => array('type' => 'textarea', 'label' => 'Add Status Note', 'attributes' => array('class' => 'noteInput', 'viewform' => 3)));
}
// viewing arrangements
$formData5 = array('dea_key' => array('type' => 'text', 'label' => 'Key Number', 'value' => $dea_key, 'attributes' => array('class' => 'wide')), 'dea_notes_arr' => array('type' => 'textarea', 'label' => 'Add Viewing Info', 'attributes' => array('class' => 'noteInput')));
if (!$_GET["action"]) {
    $form = new Form();
    $form->addForm("", "GET", $PHP_SELF);
    $form->addHtml("<div id=\"standard_form\">\n");
    $form->addField("hidden", "stage", "", "1");
    $form->addField("hidden", "action", "", "update");
    $form->addField("hidden", "dea_id", "", $dea_id);
    $form->addField("hidden", "pro_id", "", $pro_id);
    $form->addField("hidden", "searchLink", "", urlencode($searchLink));
    $form->addHtml('<h1>' . $pro_addr . ' (' . $dea_type . ')</h1>');
    $formName = 'form1';
    $form->addHtml("<fieldset>\n");
    $form->addLegend('Summary', array('style' => 'cursor:pointer', 'onClick' => 'javascript:showHide(\'' . $formName . '\');'));
    $form->addHtml('<div id="' . $formName . '" style="display:none">');
    $form->addHtml($form->addHtml($summary_table));
    //$form->addHtml($form->addDiv($form->makeField("textarea",$formName,"General Notes","",array('class'=>'noteInput'))));
    $form->addHtml($form->addRow('textarea', 'dea_notes', 'Add General Note', '', array('class' => 'noteInput'), '', ''));
    $form->addHtml(renderNotes('deal_general', $dea_id, array('viewform' => '1', 'label' => 'General Notes')));
    $buttons = $form->makeField("submit", $formName, "", "Save Changes", array('class' => 'submit'));
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:deal_summary2.php

示例4: foreach

            foreach ($data as $output) {
                $results .= $output;
            }
            $results .= '</table>
';
        } else {
            // no results
            $results = '
<table cellpadding="5">
  <tr>
    <td>Your search returned no matches, please <strong><a href="' . urldecode($returnLink) . '">try again</a></strong></td>
  </tr>
</table>';
        }
        $form = new Form();
        $form->addHtml("<div id=\"standard_form\">\n");
        $form->addForm("", "get", $_SERVER['PHP_SELF']);
        $form->addField("hidden", "searchLink", "", $searchLink);
        $form->addHtml("<fieldset>\n");
        $form->addHtml('<div class="block-header">Users</div>');
        $form->addHtml('<div id="results_table">');
        $form->addHtml($header);
        $form->addHtml($results);
        $form->addHtml($footer);
        $form->addHtml('</div>');
        $form->addHtml("</fieldset>\n");
        $form->addHtml('</div>');
        $navbar_array = array('back' => array('title' => 'Back', 'label' => 'Back', 'link' => $returnLink), 'print' => array('title' => 'Print', 'label' => 'Print', 'link' => 'javascript:windowPrint();'));
        $navbar = navbar2($navbar_array);
        $page->setTitle('Users');
        $page->addStyleSheet(getDefaultCss());
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:user_details.php

示例5: array

        exit;
    }
}
/*
if ($app["type"] == "Lunch" || $app["type"] == "Note" || $app["type"] == "Meeting") {
	$db_data["app_status"] = 'Cancelled';
	db_query($db_data,"UPDATE","appointment","app_id",$app["id"]);
	header("Location:calendar.php?branch=".$app["branch"]."&y=$y&m=$m&d=$d");
	exit;

	}
*/
$formData1 = array('notes' => array('type' => 'textarea', 'label' => 'Reason for Cancelling', 'value' => '', 'attributes' => array('class' => 'noteInput')));
$form = new Form();
$form->addForm("app_form", "POST", $PHP_SELF);
$form->addHtml("<div id=\"standard_form\">\n");
$form->addField("hidden", "action", "", "update");
$form->addField("hidden", "app_id", "", $app_id);
$form->addField("hidden", "searchLink", "", urlencode($return));
$form->addHtml("<fieldset>\n");
$form->addHtml('<div class="block-header">Cancel ' . $app["type"] . '</div>');
$form->addHtml('<p class="appInfo">Please remember to inform all vendors/landlords and/or viewers that this appointment has been cancelled</p>');
$form->addData($formData1, $_POST);
$form->addHtml(renderNotes('appointment_cancel', $app_id, array('label' => 'Cancellation Notes')));
$buttons = $form->makeField("submit", $formName, "", "Save Changes", array('class' => 'submit'));
$form->addHtml($form->addDiv($buttons));
$form->addHtml("</fieldset>\n");
$form->addHtml('</div>');
if (!$_POST["action"]) {
    /*
    if ($_GET["searchLink"]) {
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:appointment_cancel.php

示例6: die

     $duration = $default_valuation_duration;
 }
 // get the dea_branch and maybe others?
 $sql = "SELECT dea_branch FROM deal WHERE dea_id = {$dea_id}";
 $q = $db->query($sql);
 if (DB::isError($q)) {
     die("db error: " . $q->getMessage());
 }
 $numRows = $q->numRows();
 while ($row = $q->fetchRow()) {
     $dea_branch = $row["dea_branch"];
 }
 $formData1 = array('calendarID' => array('type' => 'select_branch', 'label' => 'Branch', 'value' => $dea_branch, 'attributes' => array('class' => 'medium')), 'app_user' => array('type' => 'select_user', 'label' => 'Negotiator', 'value' => $_SESSION["auth"]["use_id"], 'attributes' => array('class' => 'medium'), 'options' => array('' => '(unassigned)')), 'app_date' => array('type' => 'datetime', 'label' => 'Date', 'value' => $app_date, 'attributes' => array('class' => 'medium', 'readonly' => 'readonly'), 'tooltip' => 'Today\'s date is selected by default'), 'app_time' => array('type' => 'time', 'label' => 'Start Time', 'value' => $app_time), 'app_duration' => array('type' => 'select_duration', 'label' => 'Estimated Duration', 'value' => $duration, 'attributes' => array('class' => 'medium'), 'tooltip' => 'Duration is estimated at ' . $default_valuation_duration . ' minutes per property'), 'notes' => array('type' => 'textarea', 'label' => 'Notes', 'value' => $app["notes"], 'attributes' => array('class' => 'noteInput')));
 if (!$_GET["action"]) {
     $form = new Form();
     $form->addHtml("<div id=\"standard_form\">\n");
     $form->addForm("", "get");
     $form->addField("hidden", "stage", "", "appointment");
     $form->addField("hidden", "action", "", "update");
     $form->addField("hidden", "cli_id", "", $cli_id);
     $form->addField("hidden", "app_id", "", $_GET["app_id"]);
     $form->addField("hidden", "dea_id", "", $dea_id);
     $form->addField("hidden", "searchLink", "", $searchLink);
     $form->addHtml("<fieldset>\n");
     $form->addHtml('<div class="block-header">Valuation Appointment</div>');
     $form->addData($formData1, $_GET);
     $buttons = $form->makeField("submit", "submit", "", "Save Changes", array('class' => 'submit'));
     //$buttons .= ' or ';
     $buttons .= $form->makeField("button", "button", "", "No appointment", array('class' => 'button', 'onClick' => 'document.location.href = \'deal_summary.php?dea_id=' . $dea_id . '\''));
     $form->addHtml($form->addDiv($buttons));
     $form->addHtml("</fieldset>\n");
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:property_import.php

示例7: array

     }
     break;
     ###########################################################
     # stage 3 - areas
     ###########################################################
 ###########################################################
 # stage 3 - areas
 ###########################################################
 case 3:
     # build data arrays
     $formData1 = array();
     $areas = area($_GET["cli_area"]);
     if (!$_GET["action"]) {
         $form = new Form();
         $form->addForm("", "get", $PHP_SELF);
         $form->addHtml("<div id=\"standard_form\">\n");
         $form->addField("hidden", "action", "", "update");
         $form->addField("hidden", "stage", "", "3");
         $form->addField("hidden", "cli_id", "", $cli_id);
         /////////////////////////////////////////////////////////////////////////////////
         $form->addHtml("<fieldset>\n");
         $form->addHtml('<div class="block-header">Areas</div>');
         //$form->addHtml($form->addLabel('East Dulwich','<table><tr>'.$render[1].'</tr></table>'));
         $form->addHtml('&nbsp;<a href="javascript:checkToggle(document.forms[0], \'branch1\');"><strong>Camberwell Branch</strong></a>');
         $form->addHtml('<table width="100%" cellspacing="0" cellpadding="0"><tr>' . $areas[1] . '</tr></table>');
         $form->addHtml('&nbsp;<a href="javascript:checkToggle(document.forms[0], \'branch2\');"><strong>Sydenham Branch</strong></a>');
         $form->addHtml('<table width="100%" cellspacing="0" cellpadding="0"><tr>' . $areas[2] . '</tr></table>');
         $form->addHtml($form->addDiv($form->makeField("submit", "", "", "Save Changes", array('class' => 'submit'))));
         $form->addHtml("</fieldset>\n");
         $page->setTitle("Client > Add");
         $page->addStyleSheet(getDefaultCss());
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:applicant_addPIPEAREA.php

示例8: columnHeader

    $results = '
<table>
  <tr>
    ' . columnHeader(array(array('title' => 'Name', 'column' => 'cli_name', 'colspan' => '2'), array('title' => 'Email', 'column' => 'cli_email'), array('title' => 'Address', 'column' => 'cli_addr'), array('title' => 'Telephone', 'column' => 'tel_number'), array('title' => 'First Reg\'d', 'column' => 'cli_created'), array('title' => 'Last Updated', 'column' => 'cli_timestamp'), array('title' => '&nbsp;')), $_SERVER["QUERY_STRING"]) . '
  </tr>';
    foreach ($data as $output) {
        $results .= $output;
    }
    $results .= '</table>
';
} else {
    $results = '&nbsp;&nbsp;No pending clients found';
}
$page = new HTML_Page2($page_defaults);
$form = new Form();
$form->addHtml("<div id=\"standard_form\">\n");
$form->addForm("", "get", "client_contact.php");
$form->addHtml("<fieldset><div class='block-header'>Pending Sales</div>\n");
$form->addHtml('<div id="results_table">');
$form->addHtml($header);
$form->addHtml($results);
$form->addHtml($footer);
$form->addHtml('</div>');
$form->addHtml("</fieldset>\n");
$navbar_array = array('back' => array('title' => 'Back', 'label' => 'Back', 'link' => $returnLink), 'search' => array('title' => 'Client Search', 'label' => 'Client Search', 'link' => 'client_search.php'));
$navbar = navbar2($navbar_array);
$page->setTitle("Client > New Pending Clients");
$page->addStyleSheet(getDefaultCss());
$page->addScript('js/global.js');
$page->addBodyContent($header_and_menu);
$page->addBodyContent('<div id="content_wide">');
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:new_client_pending_sales.php

示例9: while

 while ($row = $q->fetchRow()) {
     $dea_user = $row["dea_neg"];
 }
 if (!$dea_user) {
     $dea_user = $_SESSION["auth"]["use_id"];
 }
 // change sydenham, lettins branch to camberwell, as only one calendar in use
 if ($_SESSION["auth"]["use_branch"] == 4) {
     $branch = 3;
 } else {
     $branch = $_SESSION["auth"]["use_branch"];
 }
 $formData1 = array('calendarID' => array('type' => 'select_branch_2', 'label' => 'Branch', 'value' => $branch, 'attributes' => array('class' => 'medium')), 'app_user' => array('type' => 'select_user', 'label' => 'Negotiator', 'value' => $_SESSION["auth"]["use_id"], 'attributes' => array('class' => 'medium'), 'options' => $negotiators), 'app_date' => array('type' => 'datetime', 'label' => 'Date', 'value' => $app_date, 'attributes' => array('class' => 'medium', 'readonly' => 'readonly'), 'tooltip' => 'Today\'s date is selected by default'), 'app_time' => array('type' => 'time', 'label' => 'Start Time', 'value' => $app_time), 'app_duration' => array('type' => 'select_duration', 'label' => 'Estimated Duration', 'value' => $duration, 'attributes' => array('class' => 'medium'), 'tooltip' => 'Duration is estimated at ' . $default_production_duration . ' minutes'));
 if (!$_GET["action"]) {
     $form = new Form();
     $form->addHtml("<div id=\"standard_form\">\n");
     $form->addForm("", "get");
     $form->addField("hidden", "stage", "", "appointment");
     $form->addField("hidden", "action", "", "update");
     $form->addField("hidden", "cli_id", "", $cli_id);
     $form->addField("hidden", "dea_id", "", $dea_id);
     $form->addField("hidden", "searchLink", "", $searchLink);
     $form->addHtml("<fieldset>\n");
     $form->addHtml('<div class="block-header">Appointment</div>');
     $form->addData($formData1, $_GET);
     $form->addHtml($form->addDiv($form->makeField("submit", "submit", "", "Save Changes", array('class' => 'submit'))));
     $form->addHtml("</fieldset>\n");
     $form->addHtml("</div>\n");
     $navbar_array = array('back' => array('title' => 'Back', 'label' => 'Back', 'link' => $returnLink), 'search' => array('title' => 'Property Search', 'label' => 'Property Search', 'link' => 'property_search.php'));
     $navbar = navbar2($navbar_array);
     $page->setTitle("Arrange Production");
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:production_add.php

示例10: Form

$form->addField("hidden", "pro_id", "", $_GET["pro_id"]);
// adding hidden fields for deal, pro2cli, pro2con, pro2com
$form->addField("hidden", "dea_id", "", $dea_id);
$form->addField("hidden", "cli_id", "", $cli_id);
$form->addField("hidden", "pro2con", "", $pro2con);
$form->addField("hidden", "pro2com", "", $pro2com);
$form->addHtml("<div id=\"standard_form\">\n");
$form->addHtml("<fieldset>\n");
$form->addHtml('<div class="block-header">Postcode Lookup</div>');
$form->ajaxPostcode("by_freetext", "pro");
$form->addHtml("</fieldset>\n");
$form->addHtml("</div>\n");
$form2 = new Form();
$form2->addForm("form2", "get", $PHP_SELF);
$form2->addField("hidden", "pro_id", "", $_GET["pro_id"]);
$form2->addHtml("<div id=\"standard_form\">\n");
$form2->addHtml("<fieldset>\n");
$form2->addLegend('Postcode Lookup');
$form2->ajaxPostcode("by_postcode", "pro");
$form2->addHtml("</fieldset>\n");
$form2->addHtml("</div>\n");
if (!$_GET["stage"]) {
    /*
    $render = '
    <form method="get">
    <select name="lookup_type">
    <tr><td><a href="?stage=2&search_string="></a></td></tr>
    <tr><td><a href="?stage=2&search_string=browse">browse</a></td></tr>
    <tr><td><a href="?stage=2&search_string=by_freetext">by_freetext</a></td></tr>
    <tr><td><a href="?stage=2&search_string=by_postcode">by_postcode</a></td></tr>
    <tr><td><a href="?stage=2&search_string=by_area">by_area</a></td></tr>
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:postcode_tools.php

示例11: header

}
if ($_GET["action"] == "reorder") {
    $image = $_GET["med_id"];
    $direction = $_GET["direction"];
    header("Location:image.php?dir_id=" . $_GET["dir_id"]);
}
$formData1 = array('med_file' => array('type' => 'file', 'label' => 'Image', 'required' => 3, 'attributes' => array('style' => 'width:320px')), 'med_title' => array('type' => 'text', 'label' => 'Title', 'required' => 1, 'attributes' => array('style' => 'width:320px')), 'med_blurb' => array('type' => 'textarea', 'label' => 'Description', 'required' => 1, 'attributes' => array('style' => 'width:320px;height:50px')));
if (!$_POST["action"]) {
    if (!$_GET["dir_id"]) {
        echo "no directory entry identifier supplied";
        exit;
    }
    // start new form object
    $form = new Form();
    $form->addForm("form", "post", $PHP_SELF, "multipart/form-data");
    $form->addHtml("<div id=\"standard_form\">\n");
    $form->addField("hidden", "action", "", "update");
    $form->addField("hidden", "dir_id", "", $_GET["dir_id"]);
    /////////////////////////////////////////////////////////////////////////////////
    $form->addHtml("<fieldset>\n");
    $form->addLegend('Add Image');
    $form->addData($formData1, $_GET);
    $form->addHtml($form->addDiv($form->makeField("submit", "", "", "Save Changes", array('class' => 'submit'))));
    $form->addHtml("</fieldset>\n");
    /////////////////////////////////////////////////////////////////////////////////
    // get existing images
    $sql = "SELECT * FROM media WHERE\nmed_table = 'directory' AND\nmed_row = " . $_GET["dir_id"] . "\nORDER BY med_order ASC, med_created ASC";
    $q = $db->query($sql);
    if (DB::isError($q)) {
        die("db error: " . $q->getMessage());
    }
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:image.php

示例12: array

// sales specific forms
$price_brackets = array('0-250000' => '&pound;0 to &pound;250k', '250000-350000' => '&pound;250k to &pound;350k', '350000-500000' => '&pound;350k to &pound;500k', '500000-750000' => '&pound;500k to &pound;750k', '750000-1000000' => '&pound;750k to &pound;1 million', '1000000-2000000' => '&pound;1 million to &pound;2 million');
$deposits = array('0-15' => '0-15%', '16-25' => '16-25%', '26-50' => '26-50%', '51-75' => '51-75%', '100' => '100%');
$form3 = array('cli_selling' => array('type' => 'radio', 'label' => 'Are you selling?', 'required' => 2, 'options' => array('Yes' => 'Yes', 'No' => 'No'), 'value' => $cli_selling), 'cli_renting' => array('type' => 'radio', 'label' => 'Are you renting?', 'required' => 2, 'options' => array('Yes' => 'Yes', 'No' => 'No'), 'value' => $cli_renting), 'cli_valuation' => array('type' => 'radio', 'label' => 'Requires Valuation?', 'required' => 2, 'options' => array('Yes' => 'Yes', 'No' => 'No'), 'value' => $cli_valuation), 'cli_wparents' => array('type' => 'radio', 'label' => 'Living with parents?', 'required' => 2, 'options' => array('Yes' => 'Yes', 'No' => 'No'), 'value' => $cli_wparents));
$form5 = array('cli_area' => array('type' => 'checkbox', 'label' => 'Area(s)', 'required' => 2, 'options' => $areas), 'cli_propertytype' => array('type' => 'checkbox', 'label' => 'Property Type(s)', 'required' => 2, 'options' => $propertytypes), 'cli_price_bracket' => array('type' => 'select', 'label' => 'Price Bracket', 'required' => 2, 'options' => $price_brackets, 'attributes' => array('style' => 'width:250px')), 'cli_deposit' => array('type' => 'select', 'label' => 'Deposit', 'required' => 2, 'options' => $deposits, 'attributes' => array('style' => 'width:100px'), 'value' => $cli_deposit), 'cli_salebed' => array('type' => 'select_number', 'value' => $cli_salebed, 'label' => 'Minimum Beds', 'required' => 2), 'cli_saleemail' => array('type' => 'radio', 'value' => $cli_saleemail, 'label' => 'Email Updates', 'required' => 2, 'options' => db_enum("client", "cli_saleemail", "array")));
$sql = "SELECT * FROM branch WHERE bra_title LIKE '%Sales%'";
$q = $db->query($sql);
while ($row = $q->fetchRow()) {
    $branches[$row["bra_id"]] = $row["bra_title"];
}
$form6 = array('cli_branch' => array('type' => 'select', 'label' => 'Branch', 'required' => 2, 'options' => $branches, 'attributes' => array('style' => 'width:250px'), 'value' => $_SESSION["auth"]["use_branch"]), 'cli_neg' => array('type' => 'select_neg', 'label' => 'Negotiator', 'required' => 2, 'attributes' => array('style' => 'width:250px'), 'value' => $_SESSION["auth"]["use_id"]), 'cli_notes' => array('type' => 'textarea', 'label' => 'General Notes', 'required' => 2, 'attributes' => array('style' => 'width:450px;height:150px;')));
if (!$_POST) {
    // start new form object
    $form = new Form();
    $form->addForm("testForm", "post", $PHP_SELF);
    $form->addHtml("<div id=\"standard_form\">\n");
    $form->addField("hidden", "action", "", "update");
    $form->addField("hidden", "cli_id", "", $cli_id);
    $form->addField("hidden", "searchLink", "", $searchLink);
    //$form->addHtml('<input type="hidden" name="action" value="update">');
    $form->addHtml('<h1>New Client Questionaire</h1>');
    $form->addHtml("<fieldset>\n");
    $form->addHtml('<div class="block-header">Personal Details</div>');
    $form->addHtml('<div>');
    $form->addData($form1, $_POST);
    $form->addHtml("</div>\n");
    $form->addHtml("</fieldset>\n");
    $form->addHtml("<fieldset>\n");
    $form->addHtml('<div class="block-header">Address</div>');
    $form->addHtml('<div>');
    $form->addData($form2, $_POST);
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:new_client_questionaire_sales.php

示例13: array

  <tr>
	<td class="label" valign="top">Viewer(s)</td>
	<td>' . preg_replace("/\\([a-z0-9\\ ]+\\)/", "", $cli_name) . '</td>
  </tr>';
}
$render .= '
  <tr>
	<td class="label" valign="top">Date</td>
	<td>' . $app_date . '</td>
  </tr>
</table>';
$formData1 = array('d2a_feedback' => array('type' => 'radio', 'label' => 'Outcome', 'value' => $d2a_feedback, 'options' => array_slice(db_enum("link_deal_to_appointment", "d2a_feedback", "array"), 1), 'required' => 2), 'notes' => array('type' => 'textarea', 'label' => 'Add Note', 'attributes' => array('class' => 'noteInput'), 'tooltip' => 'These notes will be visible to vendors'));
if (!$_GET["action"]) {
    $form = new Form();
    $form->addForm("app_form", "GET", $PHP_SELF);
    $form->addHtml("<div id=\"standard_form\">\n");
    $form->addField("hidden", "action", "", "update");
    $form->addField("hidden", "app_id", "", $app_id);
    $form->addField("hidden", "d2a_id", "", $d2a_id);
    $form->addField("hidden", "dea_id", "", $dea_id);
    $form->addField("hidden", "cli_id", "", $cli_id);
    $form->addField("hidden", "searchLink", "", urlencode($searchLink));
    $form->addHtml("<fieldset>\n");
    $form->addHtml('<div class="block-header">Feedback</div>');
    $form->addHtml($render);
    $form->addData($formData1, $_GET);
    $form->addHtml(renderNotes('feedback', $d2a_id));
    if ($app_type == 'Viewing') {
        $form->addHtml($form->addRow('radio', 'makeoffer', 'Submit Offer?', 'No', '', array('Yes' => 'Yes', 'No' => 'No')));
    }
    $form->addHtml($form->addDiv($form->makeField("submit", $formName, "", "Save Changes", array('class' => 'submit'))));
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:appointment_feedback.php

示例14: array

}
$image_path_property = IMAGE_PATH_PROPERTY . $dea_id . "/";
$image_url_property = IMAGE_URL_PROPERTY . $dea_id . "/";
if ($med_type == "Photograph") {
    // which tab to show on return to production page
    $viewForm = 3;
    $formData = array('med_title' => array('type' => 'select', 'label' => 'Title', 'value' => $med_title, 'required' => 2, 'attributes' => array('style' => 'width:320px'), 'options' => $photograph_titles), 'med_blurb' => array('type' => 'textarea', 'label' => 'Description', 'value' => $med_blurb, 'attributes' => array('style' => 'width:320px')));
} elseif ($med_type == "Floorplan") {
    // which tab to show on return to production page
    $viewForm = 4;
    $formData = array('med_title' => array('type' => 'select', 'label' => 'Title', 'value' => $med_title, 'required' => 2, 'attributes' => array('style' => 'width:320px'), 'options' => $floorplan_titles), 'med_dims' => array('type' => 'text', 'label' => 'Area', 'value' => $med_dims, 'required' => 1, 'attributes' => array('style' => 'width:120px'), 'group' => 'Area'), 'med_measurement' => array('type' => 'radio', 'label' => 'Area', 'default' => 'mtr&sup2;', 'required' => 1, 'options' => array('mtr&sup2;' => 'metres', 'ft&sup2;' => 'feet'), 'group' => 'Area', 'last_in_group' => 1));
}
if (!$_POST["action"]) {
    $form = new Form();
    $form->addForm("", "POST", $PHP_SELF, "multipart/form-data");
    $form->addHtml("<div id=\"standard_form\">\n");
    $form->addField("hidden", "stage", "", "1");
    $form->addField("hidden", "action", "", "update");
    $form->addField("hidden", "dea_id", "", $dea_id);
    $form->addField("hidden", "med_id", "", $med_id);
    $form->addField("hidden", "searchLink", "", urlencode($searchLink));
    $form->addHtml("<fieldset>\n");
    //$form->addLegend('Edit '.$med_title);
    $form->addHtml('<div class="block-header">Edit ' . $med_title . '</div>');
    $form->addData($formData, $_POST);
    $form->addHtml($form->addDiv($form->makeField("submit", "", "", "Save Changes", array('class' => 'submit'))));
    if ($med_type == "Photograph") {
        foreach ($thumbnail_sizes as $dims => $ext) {
            $dim = explode('x', $dims);
            $width = $dim[0];
            $height = $dim[1];
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:media_edit.php

示例15: Form

Offer made by:   ' . preg_replace("/\\([a-z0-9\\ ]+\\)/", "", $cli_name) . '
Date of offer:   ' . $date . '
Amount:          ' . format_price($off_price) . ' (' . $off_price_word . ')
Conditions:      ' . $off_conditions . '

With kind regards.

Yours sincerely,

' . $use_name);
        #echo "<pre>".$offer_text."</pre>";
        #exit;
        if (!$_GET["action"]) {
            $form = new Form();
            $form->addForm("", "GET", $PHP_SELF);
            $form->addHtml("<div id=\"standard_form\">\n");
            $form->addField("hidden", "action", "", "update");
            $form->addField("hidden", "stage", "", "2");
            $form->addField("hidden", "off_id", "", $off_id);
            $form->addField("hidden", "return", "", $_GET["return"]);
            $form->addHtml("<fieldset>\n");
            $form->addHtml('<div class="block-header">Submit Offer</div>');
            #$form->addHtml($form->addHtml($deal_table));
            #$form->addData($formData1,$_GET);
            $form->addRow("textarea", "send", "Letter to Vendor", $offer_text, array('style' => 'width:450px;height:450px'));
            $form->addRow("checkbox", "send", "Send By", array("Post", "Email"), array(), array('Post' => 'Post', 'Email' => 'Email'));
            $form->addHtml($form->addDiv($form->makeField("submit", $formName, "", "Send and Save", array('class' => 'submit'))));
            $form->addHtml("</fieldset>\n");
            $form->addHtml("</div>\n");
            $navbar_array = array('back' => array('title' => 'Back', 'label' => 'Back', 'link' => $_GET["return"]), 'search' => array('title' => 'Property Search', 'label' => 'Property Search', 'link' => 'property_search.php'));
            $navbar = navbar2($navbar_array);
开发者ID:jankichaudhari,项目名称:yii-site,代码行数:31,代码来源:offer_submit.php


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