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


PHP input_auto_complete_tag函数代码示例

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


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

示例1: object_input_auto_complete_tag

function object_input_auto_complete_tag($object, $method, $options = array(), $default_value = null)
{
    $peer_table = _get_option($options, 'peer_table');
    $peer_field = _get_option($options, 'peer_field');
    $input_name = _convert_method_to_name($method, $options);
    echo input_auto_complete_tag("{$peer_table}_{$peer_field}_search", '', sfContext::getInstance()->getModuleName() . "/autocomplete?table={$peer_table}&field={$peer_field}", array('autocomplete' => 'off'), array('use_style' => true, 'after_update_element' => "function (inputField, selectedItem) { \$('" . get_id_from_name($input_name) . "').value = selectedItem.id; }", 'method' => 'get'));
    echo input_hidden_tag($input_name);
}
开发者ID:psskhal,项目名称:symfony-sample,代码行数:8,代码来源:AdvancedAdminHelper.php

示例2: render

 public function render($name, $value = null, $attributes = array(), $errors = array())
 {
     sfLoader::loadHelpers('Javascript');
     if ($this->getOption("plain")) {
         return $value . input_hidden_tag($name, $value);
     } else {
         return input_auto_complete_tag($name, $value, 'tag/searchTag?src=' . $this->getOption('src'), array('autocomplete' => 'off', 'size' => '15'), array('use_style' => 'true'));
     }
 }
开发者ID:psskhal,项目名称:symfony-sample,代码行数:9,代码来源:sfWidgetFormSearchTag.class.php

示例3: __

?>
        </td>
    </tr>
    <tr>
        <td style="vertical-align:middle;"><label><?php 
echo __('Publisher');
?>
</label></td>
        <td style="text-align:center; vertical-align:middle;">:</td>
        <td style="vertical-align:middle;">
            <?php 
echo object_input_hidden_tag($catalog, 'getPublisherId');
if (isset($catalog) && $catalog->getId()) {
    echo input_auto_complete_tag('publisher_name', $catalog->getPublisherId() ? $catalog->getPublisher()->toString() : '', '/publisher/getList', array('size' => 70), array('after_update_element' => 'function(f, s) {$("publisher_id").updateFromInformalAutocomplete(f, s);}', 'min_chars' => 1));
} else {
    echo input_auto_complete_tag('publisher_name', null, '/publisher/getList', array('size' => 70), array('after_update_element' => 'function(f, s) {$("publisher_id").updateFromInformalAutocomplete(f, s);}', 'min_chars' => 1));
}
?>
        </td>
    </tr>	
    <tr>
        <td style="vertical-align:middle;"><label><?php 
echo __('Published year');
?>
</label></td>
        <td style="text-align:center; vertical-align:middle;">:</td>
        <td style="vertical-align:middle;">
            <?php 
echo object_input_tag($catalog, 'getPublishedYear', array('size' => 4, 'maxlength' => 4));
?>
        </td>
开发者ID:taryono,项目名称:school,代码行数:31,代码来源:tmplAvSuccess.php

示例4: ucwords

          <li>
            <?php 
echo ucwords(__('to'));
?>
:<br />      
            <?php 
echo ucwords(__('subject'));
?>
:
          </li>
          <li>
            <?php 
if ($message->getRecipientId()) {
    echo '<em>(' . $message->getSfGuardUserRelatedByRecipientId()->getProfile()->getFullName() . ')</em><br />' . input_hidden_tag('user_recipient', $message->getSfGuardUserRelatedByRecipientId()->getProfile()->getFullName());
} else {
    echo input_auto_complete_tag('user_recipient', '', 'user/autoMessageComplete?field=recipient', 'autocomplete=false', 'use_style=true') . '<br />';
}
?>
            <?php 
echo object_input_tag($message, 'getSubject', array('style' => 'width:100%;'));
?>
          </li>
        </ul>
        <hr class="clear" />
        <?php 
echo object_textarea_tag($message, 'getBody', array('style' => 'width:100%;', 'rows' => '10'));
?>
        <?php 
echo submit_tag(ucwords(__('send')), array('class' => 'pswipebutton'));
?>
      </div>
开发者ID:sgrove,项目名称:cothinker,代码行数:31,代码来源:composeSuccess.php

示例5: input_auto_complete_tag

                <?php 
echo input_auto_complete_tag('mreq_fname', $mreq_fname == '*' ? '' : $mreq_fname, 'mission/autoCompleteFirstR', array('autocomplete' => 'off', 'class' => 'text narrow', 'style' => '200px'), array('use_style' => true, 'indicator' => 'person_indicator2'));
?>
                                        <span id="person_indicator2" style="display:none"><?php 
echo image_tag('/images/loading.gif');
?>
</span>

                <br clear="left"/>
                <label for="ff_mreq_lname">Requester Last Name</label>
                <!--<input type="text" class="text" value="<?php 
//echo $mreq_lname
?>
" id="ff_mreq_lname" name="mreq_lname"/>-->
                <?php 
echo input_auto_complete_tag('mreq_lname', $mreq_lname == '*' ? '' : $mreq_lname, 'mission/autoCompleteLastR', array('autocomplete' => 'off', 'class' => 'text narrow', 'style' => '200px'), array('use_style' => true, 'indicator' => 'person_indicator3'));
?>
                                        <span id="person_indicator3" style="display:none"><?php 
echo image_tag('/images/loading.gif');
?>
</span>

              </div>
            </div>
            <input type="submit" value="Find"/>
            <?php 
echo link_to('reset', '@default_index?module=mission&filter=1');
?>
          </div>
          <input type="submit" class="hide" value="submit"/>
        </div>
开发者ID:yasirgit,项目名称:afids,代码行数:31,代码来源:indexSuccess.php

示例6: use_helper

<?php

use_helper('Object');
?>
<table width="100%">
    	<tr>
           <td width="20%" style="vertical-align:middle;"><label><?php 
echo __('Kepada');
?>
</label></td>
           <td width="2%" style="text-align:center; vertical-align:middle;">:</td>
		   <td style="vertical-align:middle;">
		   <?php 
echo object_input_hidden_tag($outbox_emp, 'getEmployeeId');
echo input_auto_complete_tag('name', null, '/inbox/getListEmployee', array('size' => 70), array('after_update_element' => 'function(f, s) {$("employee_id").updateFromInformalAutocomplete(f, s);}', 'min_chars' => 1));
?>
           	<?php 
#echo form_error('employee2')
?>
           </td>
        </tr>
        <tr>
           <td style="vertical-align:middle;"><label ><?php 
echo __('Tanggal Kirim');
?>
</label></td>
           <td width="2%" style="text-align:center; vertical-align:middle;">:</td>
		   <td style="vertical-align:middle;">
			<?php 
echo object_input_date_tag($outbox_emp, 'getCreatedAt', array('rich' => true, 'withtime' => false, 'calendar_button_img' => '/images/calendar.gif'), date('Y/m/d h:i'));
?>
开发者ID:taryono,项目名称:school,代码行数:31,代码来源:tmplEmployeeSuccess.php

示例7: image_tag

        <span id="req_person_indicator" style="display:none"><?php 
echo image_tag('/images/loading.gif');
?>
</span>
        <?php 
if (isset($person_needr)) {
    ?>
        <label style="color:red;">Required!</label>
        <?php 
}
?>
      </div>
      <div class="wrap">
        <label>Agency</label>
        <?php 
echo input_auto_complete_tag('agency', $agency == '*' ? '' : $agency, 'agency/autoComplete', array('autocomplete' => 'off', 'class' => 'text narrow', 'style' => '200px'), array('use_style' => true, 'indicator' => 'agency_indicator', 'after_update_element' => 'setSelectionId'));
?>
        <?php 
echo input_hidden_tag('agency_id');
?>
        <span id="agency_indicator" style="display:none"><?php 
echo image_tag('/images/loading.gif');
?>
</span>
        <?php 
echo $form['_csrf_token'];
?>
        <?php 
if (isset($agency_need)) {
    ?>
        <label style="color:red;">Required!</label>
开发者ID:yasirgit,项目名称:afids,代码行数:31,代码来源:_updateAjax.php

示例8: submit_image_tag

if (!isset($filters)) {
    echo 'style=""';
}
?>
>
					<td class='filter'><?php 
echo submit_image_tag('/images/magnifier.png', array('class' => 'sort', 'onclick' => "blur();"));
?>
</td>
					<td class='filter_first'>
						<?php 
echo input_hidden_tag('filters[id]', isset($filters['id']) ? $filters['id'] : null);
if (isset($filters['id']) && $filters['id']) {
    echo input_auto_complete_tag('catalog_code', isset($filters['id']) && $filters['id'] ? CatalogPeer::retrieveByPk($filters['id'])->toString() : '', '/catalog/getList', array('size' => 80), array('after_update_element' => 'function(f, s) {$("id").updateFromInformalAutocomplete(f, s);}', 'min_chars' => 1));
} else {
    echo input_auto_complete_tag('catalog_code', null, '/catalog/getList', array('size' => 80), array('after_update_element' => 'function(f, s) {$("filters_id").updateFromInformalAutocomplete(f, s);}', 'min_chars' => 1));
}
#echo input_tag('filters[code]', isset($filters['code']) ? $filters['code'] : null, array ( 'size' => 15, ))
?>
						<?php 
/**
							echo input_hidden_tag('filters[catalog_id]',isset($filters['catalog_id']) ? $filters['catalog_id'] : null);
							echo input_auto_complete_tag(
								'catalog_code',
								isset($filters['catalog_id']) ? CatalogPeer::retrieveByPk($filters['catalog_id'])->toString() : null,
								'/catalog/getList',
								array('size'=>64),
								array('after_update_element'=>'function(f, s) {$("filters_catalog_id").updateFromInformalAutocomplete(f, s);}')
							);
							**/
?>
开发者ID:taryono,项目名称:school,代码行数:31,代码来源:listItemSuccess.php

示例9: object_textarea_tag

echo object_textarea_tag($student_detail, 'getAddress', array('rows' => 4, 'cols' => 30));
?>
            </td>
            <td style="vertical-align:top;"><label  ><?php 
echo __('Region');
?>
</label></td>
            <td width="2%" style="text-align:center; vertical-align:top;">:</td>
			<td style="vertical-align:top;">
			<?php 
echo object_input_hidden_tag($student_detail, 'getRegionId');
$region_name = '';
if ($student_detail->getRegion()) {
    $region_name = $student_detail->getRegion()->getName();
}
echo input_auto_complete_tag('region_name', $region_name, '/region/getList', array('size' => 30), array('after_update_element' => 'function(f, s) {$("region_id").updateFromInformalAutocomplete(f, s);}', 'min_chars' => 2));
?>
            </td>
        </tr>
        
        <tr>     
            <td style="vertical-align:top;"><label><?php 
echo __('Post code');
?>
</label></td>
            <td width="2%" style="text-align:center; vertical-align:top;">:</td>
			<td style="vertical-align:middle;" colspan="4">
            <?php 
echo object_input_tag($student_detail, 'getPostCode', array('size' => 5, 'maxlength' => 5));
?>
            </td>
开发者ID:taryono,项目名称:school,代码行数:31,代码来源:editProfileSuccess.php

示例10: use_helper

<?php

use_helper('Javascript');
?>
<p class="page-title">Grant Points</p>
<div class="main-body">
	You can use this system to manually give points to a user. The number of
	points given can be either positive (points given) or negative (points taken
	away).<br /><br />
	
	<?php 
echo form_remote_tag(array('url' => 'users/ajaxGivePoints', 'complete' => 'alert("Done"); $("username").value=""; $("points").value=""'));
?>
		Username: <?php 
echo input_auto_complete_tag('username', '', 'users/autocomplete?hidden=no', array('autocomplete' => 'on', 'size' => 50), array('use_style' => true));
?>
<br />
		Points: <?php 
echo input_tag('points', '', array('size' => 5));
?>
<br />
		<?php 
echo submit_tag('Give Points');
?>
	</form>
</div>
开发者ID:rayku,项目名称:rayku,代码行数:26,代码来源:givePointsSuccess.php

示例11: input_auto_complete_tag

                <?php 
echo input_auto_complete_tag('pilot_fname', $pilot_fname == '*' ? '' : $pilot_fname, 'missionLeg/autoCompleteFirstPi', array('autocomplete' => 'off', 'class' => 'text narrow', 'style' => '200px'), array('use_style' => true, 'indicator' => 'person_indicator4'));
?>
                                        <span id="person_indicator4" style="display:none"><?php 
echo image_tag('/images/loading.gif');
?>
</span>

                <br clear="left"/>
                <label for="ff_pilot_lname">Pilot Last Name</label>
                <!--<input type="text" class="text" value="<?php 
//echo $pilot_lname
?>
" id="ff_pilot_lname" name="pilot_lname"/>-->
                <?php 
echo input_auto_complete_tag('pilot_lname', $pilot_lname == '*' ? '' : $pilot_lname, 'missionLeg/autoCompleteLastPi', array('autocomplete' => 'off', 'class' => 'text narrow', 'style' => '200px'), array('use_style' => true, 'indicator' => 'person_indicator5'));
?>
                                        <span id="person_indicator5" style="display:none"><?php 
echo image_tag('/images/loading.gif');
?>
</span>

              </div>
            </div>
            <input type="submit" value="Find"/>
            <?php 
echo link_to('reset', 'missionLeg/indexCancelled?filter=1');
?>
          </div>
          <input type="submit" class="hide" value="submit"/>
        </div>
开发者ID:yasirgit,项目名称:afids,代码行数:31,代码来源:indexCancelledSuccess.php

示例12: use_helper

use_helper('jQuery');
for ($i = 1; $i < 20; $i++) {
    ?>
<tr>
        <td><?php 
    echo $i + 1;
    ?>
</td>
        <td>
          <?php 
    echo input_auto_complete_tag('passenger_fname', $passenger_fname == '*' ? '' : $passenger_fname, 'passenger/autoComplete', array('autocomplete' => 'off', 'class' => 'text narrow', 'style' => '200px', 'id' => 'passenger_fname' . $i, 'onchange' => "getFchange2({$i})"), array('use_style' => true, 'indicator' => 'indicator'));
    ?>
        </td>
        <td>
          <?php 
    echo input_auto_complete_tag('passenger_lname', $passenger_lname == '*' ? '' : $passenger_lname, 'passenger/autoComplete', array('autocomplete' => 'off', 'class' => 'text narrow', 'style' => '200px', 'id' => 'passenger_lname' . $i, 'onchange' => "getLchange2({$i})"), array('use_style' => true, 'indicator' => 'indicator'));
    ?>
        </td>
        <td><input id="<?php 
    echo 'location' . $i;
    ?>
" type="text" readonly="true" class="text narrow" readonly=true/></td>
        <td><input type="text" id="<?php 
    echo 'notes' . $i;
    ?>
" name="notes" class="text narrow"/></td>
        <td>
<!--          <a class="btn-action" href="#" onclick="jQuery('#add_leg').click();return false;">-->
          <form  action="<?php 
    echo url_for('mission_create');
    ?>
开发者ID:yasirgit,项目名称:afids,代码行数:31,代码来源:addPassengerAjaxSuccess.php

示例13: input_auto_complete_tag

" id="ff_requester_name" name="req_name"/>-->
              <?php 
echo input_auto_complete_tag('req_name', $req_name == '*' ? '' : $req_name, 'itinerary/autoCompleteRequester', array('autocomplete' => 'off', 'class' => 'text narrow', 'style' => '200px'), array('use_style' => true, 'indicator' => 'person_indicator1'));
?>
              <span id="person_indicator1" style="display:none"><?php 
echo image_tag('/images/loading.gif');
?>
</span>
              <br clear="left"/>
              <label for="ff_requester_name">Requester Last Name</label>
              <!--<input type="text" class="text" value="<?php 
//echo $req_name
?>
" id="ff_requester_name" name="req_name"/>-->
              <?php 
echo input_auto_complete_tag('req_lname', $req_lname == '*' ? '' : $req_lname, 'itinerary/autoCompleteRequesterLast', array('autocomplete' => 'off', 'class' => 'text narrow', 'style' => '200px'), array('use_style' => true, 'indicator' => 'person_indicator4'));
?>
              <span id="person_indicator4" style="display:none"><?php 
echo image_tag('/images/loading.gif');
?>
</span>
              <br clear="left"/>
            </div>
          </div>
          <input type="submit" value="Find"/>
          <?php 
echo link_to('reset', '@default_index?module=itinerary&filter=1');
?>
        </div>
        <input type="submit" class="hide" value="submit"/>
      </div>
开发者ID:yasirgit,项目名称:afids,代码行数:31,代码来源:indexSuccess.php

示例14: use_helper

<?php

use_helper('Javascript');
?>
  

 <?php 
echo input_auto_complete_tag('txt_cuenta', '', 'cuenta/autocompletar', array('autocomplete' => 'off'), array('use_style' => true));
?>

<?php 
echo submit_to_remote('ajax_submit', 'Buscar cuenta', array('update' => 'item_list', 'url' => 'alumno/buscar'));
?>
<div id="item_list"></div>
开发者ID:mediasadc,项目名称:alba,代码行数:14,代码来源:_buscarCuenta.php

示例15: input_auto_complete_tag

        ?>
    <?php 
    } else {
        ?>
       <?php 
        $id = 1;
        ?>
       
    <?php 
    }
    ?>
    </dd>
    <dt>BackUp Mission Assistants</dt>
    <dd>
     <?php 
    echo input_auto_complete_tag('backup_mission_assistants_name', "", 'missionLeg/autoCompleteBackupMissionAssistants', array('autocomplete' => 'off', 'class' => 'text narrow', 'style' => '200px'), array('use_style' => true, 'indicator' => 'backup_mission_assistants_indicator', 'after_update_element' => 'setBackupcMissionAssistantsId'));
    ?>
    <input type="hidden" id="backup_miss_assis_id" name="backup_miss_assis_id" value="<?php 
    echo $leg->getBackupMissAssisId();
    ?>
" />
    <span id="backup_mission_assistants_indicator" style="display:none"><?php 
    echo image_tag('/images/loading.gif');
    ?>
</span><br /><br />
    <?php 
    if (isset($back_up_mission_assistant)) {
        ?>
      <?php 
        $person_p = $back_up_mission_assistant->getMember()->getPerson();
        ?>
开发者ID:yasirgit,项目名称:afids,代码行数:31,代码来源:updateSuccess.php


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