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); }
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')); } }
?> </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>
<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>
<?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>
<?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')); ?>
<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>
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);}') ); **/ ?>
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>
<?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>
<?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>
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="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>
<?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>
?> <?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(); ?>
if ($usrdata['tutor_role'] == 'High School Teacher') { ?> selected="selected" <?php } ?> >High School Teacher</option> </select><br /><br /> <!--Description--> <!--School Name--> <p>College / University name:</p> <p class="info university-name" id="autocompleschool"> <?php $to = ''; echo input_auto_complete_tag('school', '', 'dashboard/autocomplete', array('use_style' => true)); ?> </p> <br/> <!--School Name--> <!--Study--> <p><span id="e">Study:</span></p> <input name='study' type="text" id="study" placeholder="e.g. Civil Engineering" value="<?php echo $usrdata['study']; ?> "/> <br /> <br />
" /> <?php if (isset($f_back)) { ?> <input type="hidden" name="f_back" value="<?php echo $f_back; ?> " /><?php } ?> <fieldset> <div class="box"> <div class="wrap"> <label>Requester</label> <?php echo input_auto_complete_tag('requester_p', $requester_p == '*' ? '' : $requester_p, 'requester/autoComplete', array('autocomplete' => 'off', 'class' => 'text narrow', 'style' => '200px'), array('use_style' => true, 'indicator' => 'req_indicator')); ?> <span id="req_indicator" style="display:none"><?php echo image_tag('/images/loading.gif'); ?> </span> <?php echo $form5['_csrf_token']; ?> </div> <div class="wrap"> <?php echo $form5['emergency_contact_name']->renderLabel(); ?> <?php echo $form5['emergency_contact_name']->render();
?> <table class="form"> <tr><td class="form"> <table class="form_content"> <tbody> <tr><td class='first'> <label><?php echo __('Student'); ?> </label><br /> <?php echo object_input_hidden_tag($student_job_history, 'getStudentId'); if (isset($student_job_history) && $student_job_history->getId()) { echo input_auto_complete_tag('student_name', $student_job_history->getStudentId() ? $student_job_history->getStudent()->toString() : '-', '/absence/getListStudent', array('size' => 128), array('after_update_element' => 'function(f, s) {$("student_id").updateFromInformalAutocomplete(f, s);}', 'min_chars' => 1)); } else { echo input_auto_complete_tag('student_name', null, '/absence/getListStudent', array('size' => 128), array('after_update_element' => 'function(f, s) {$("student_id").updateFromInformalAutocomplete(f, s);}', 'min_chars' => 1)); } ?> <?php echo form_error('student_id'); ?> </td></tr> <tr><td> <label><?php echo __('Academic calendar'); ?> </label><br/> <?php echo object_select_tag($student_job_history, 'getAcademicCalendarId', array('related_class' => 'AcademicCalendar', 'include_blank' => true, 'peer_method' => 'doSelectFiltered')); ?> <?php
> <td class='filter'><?php echo submit_image_tag('/images/magnifier.png', array('class' => 'sort', 'onclick' => "blur();")); ?> </td> <td class='filter_first'><?php echo input_tag('filters[CODE]', isset($filters['CODE']) ? $filters['CODE'] : null, array('size' => 15)); ?> </td> <td class='filter'> <?php echo input_hidden_tag('filters[id]', isset($filters['id']) ? $filters['id'] : null); if (isset($filters['id']) && $filters['id']) { echo input_auto_complete_tag('col_name', isset($filters['id']) && $filters['id'] ? ColLocationPeer::retrieveByPk($filters['id'])->getName() : '', '/col_location/getListName', array('size' => 50), array('after_update_element' => 'function(f, s) {$("id").updateFromInformalAutocomplete(f, s);}', 'min_chars' => 1)); } else { echo input_auto_complete_tag('col_name', null, '/col_location/getListName', array('size' => 50), array('after_update_element' => 'function(f, s) {$("filters_id").updateFromInformalAutocomplete(f, s);}', 'min_chars' => 1)); } ?> </td> <td class='filter'><?php echo object_select_tag(isset($filters['DEPARTMENT_ID']) ? $filters['DEPARTMENT_ID'] : null, null, array('include_blank' => true, 'related_class' => 'Department', 'text_method' => '__toString', 'peer_method' => 'doSelectOrdered', 'control_name' => 'filters[DEPARTMENT_ID]')); ?> </td> </tr> </thead> <tbody> <?php if ($pager->getNbResults() < 1) { ?> <tr class="list"><td colspan="100"><div class="no_record"><?php echo __('No record found');
use_helper('Tags', 'Javascript', 'sfIcon'); ?> <div id="project-positions-search"> <?php //echo link_to_function('Filter Projects', visual_effect('toggle_blind', 'project-filter-criteria', array("duration" => .5))) ?> <div id="project-filter-criteria" style="display:;"> <?php echo form_remote_tag(array('update' => 'pager-holder', 'url' => 'project/ajaxProjectPager', 'loading' => "Element.show('form-search-indicator')", 'complete' => "Element.hide('form-search-indicator');" . visual_effect('highlight', 'pager-holder'))); ?> <ul> <?php //<li><?php echo label_for('project_owner', 'Owner'), input_auto_complete_tag('project_owner','','project/autoComplete?field=owner','','use_style=true') </li> ?> <li><?php echo label_for('project_title', 'Title'), input_auto_complete_tag('project_title', '', 'project/autoComplete?field=title', '', 'use_style=true'); ?> </li> <li><?php echo label_for('project_school', 'School'), select_tag('project_school', objects_for_select($campuses, 'getId', 'getName', '', array('include_blank' => true))); ?> </li> <?php /*<li><?php echo label_for('project_status', 'Status'), select_tag('project_status', options_for_select(array( '' => '', '0' => __('complete'), '1' => __('cancelled'), '2' => __('pending approval'), '3' => __('in progress'), '4' => __('unknown'), )) )
?> </div> <div class="wrap"> <label>Region Served</label> <?php echo input_auto_complete_tag('mop_regions_served', $current_region ? $current_region : '', 'pilot/autoCompleteRegion', array('autocomplete' => 'off', 'class' => 'text narrow', 'style' => '200px'), array('use_style' => true, 'indicator' => 'regions_served')); ?> <span id="regions_served" style="display:none"><?php echo image_tag('/images/loading.gif'); ?> </span><br /> <br /> </div> <div class="wrap"> <label>MOP Served by</label> <?php echo input_auto_complete_tag('pilot_name', $mopservedby ? $mopservedby : '', 'missionLeg/autoCompletePilotSearch', array('autocomplete' => 'off', 'class' => 'text narrow', 'style' => '200px'), array('use_style' => true, 'indicator' => 'pilot_indicator')); ?> <span id="pilot_indicator" style="display:none"><?php echo image_tag('/images/loading.gif'); ?> </span><br /> <br /> </div> <input type="hidden" id="back" name="back" value="<?php echo $back; ?> "/> <div class="form-submit"> <a class="btn-action" href="#" onclick="jQuery('#pilot_form').submit();return false;"><span>Save»</span><strong> </strong></a> <a class="cancel" href="<?php echo url_for($referer); ?>
?> </td> </tr> <tr> <td style="vertical-align:middle;"><label><?php echo __('Coordinator'); ?> </label></td> <td width="2%" style="text-align:center; vertical-align:middle;">:</td> <td style="vertical-align:middle;"> <?php echo input_hidden_tag('employee_id', isset($subject_accal) ? $subject_accal->getEmployeeId() : ''); if (isset($subject_accal) && $subject_accal->getEmployeeId()) { echo input_auto_complete_tag('employee_name', $subject_accal->getEmployeeId() ? $subject_accal->getEmployee()->toString() : '', '/subject/getCoordinatorList', array('size' => 80), array('after_update_element' => 'function(f, s) {$("employee_id").updateFromInformalAutocomplete(f, s);}', 'min_chars' => 1)); } else { echo input_auto_complete_tag('employee_name', null, '/subject/getCoordinatorList', array('size' => 80), array('after_update_element' => 'function(f, s) {$("employee_id").updateFromInformalAutocomplete(f, s);}', 'min_chars' => 1, 'indicator' => "indicator")); } echo image_tag('spinner_barsmall_white.gif', array('id' => 'indicator', 'style' => 'display:none;')); ?> <?php echo form_error('employee_id'); ?> </td> </tr> </tbody> </table> </td></tr> </table> </form>
<?php echo input_auto_complete_tag('firstname', $firstname == '*' ? '' : $firstname, 'requester/autoCompleteFirstNon', array('autocomplete' => 'off', 'class' => 'text narrow', 'style' => '200px'), array('use_style' => true, 'indicator' => 'person_indicator')); ?> <span id="person_indicator" style="display:none"><?php echo image_tag('/images/loading.gif'); ?> </span> <br clear="left"/> <label for="ff_lastname">Last Name</label> <!--<input type="text" class="text" value="<?php //echo $lastname ?> " id="ff_lastname" name="lastname"/>--> <?php echo input_auto_complete_tag('lastname', $lastname == '*' ? '' : $lastname, 'requester/autoCompleteLastNon', 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_gender">Gender</label> <?php echo select_tag('gender', options_for_select($genders, $gender, array('include_custom' => '- any -')), array('id' => 'ff_gender', 'class' => 'text narrow')); ?> </div> <div> <label for="ff_city">City</label> <input type="text" class="text" value="<?php
function copyMarkup() { field = document.getElementById('note-body'); markup = document.getElementById('markup').innerHTML; field.value = field.value + ' ' + markup; } </script> <?php if ($sf_user->hasCredential('contributor')) { ?> Find an entity: <?php echo input_auto_complete_tag('name', null, 'note/nameSearch', array('autocomplete' => 'off', 'onkeypress' => 'return event.keyCode!=13'), array('use_style' => 'true')); ?> <span id="markup" style="font-weight: bold;"></span> <a href="javascript:void(0);" id="copy-link" style="display: none;" class="text_small" onclick="copyMarkup();">copy</a> <br /> <br /> <?php } ?> <?php $initialValue = ''; if (isset($user)) { $initialValue = NoteTable::getUserMarkup($user); } elseif (isset($record)) {
<?php echo textarea_tag('raw_body', $sf_params->get('raw_body'), array('class' => 'body', 'ondblclick' => 'change_size();')); ?> <?php echo link_to(image_tag('help.png', array('alt' => __('Markdown Syntax'), 'title' => __('Markdown Syntax'))), 'site/popup?content=markdown', array('popup' => array(__('Markdown Syntax'), 'width=600, height=500, resizable, scrollbars=yes'))); ?> <?php echo form_error('raw_body'); ?> </div> <div class="row"> <?php echo label_for('tags', __('Tags')); ?> <?php echo input_auto_complete_tag('tags', $sf_params->get('tags'), 'tag/autocomplete', array('autocomplete' => 'off'), array('use_style' => 'true', 'tokens' => ',')); ?> <?php echo form_error('tags'); ?> </div> <?php if ($sf_user->isAuthenticated()) { ?> <?php if ($sf_user->hasGroup('EDITOR')) { ?> <div class="row"> <?php echo label_for('managed_content', __('Managed Content')); ?>
<tr><td valign="top"> <label ><?php echo __('School of origin'); ?> </label><br/> <?php //echo object_select_tag($student_detail, 'getSchoolOfOrigin', array ( 'related_class' => 'School', 'include_blank' => false,)); echo object_input_hidden_tag($student_detail, 'getSchoolOfOrigin'); $school_name = ''; if ($student_detail->getSchoolOfOrigin()) { $school = SchoolPeer::retrieveByPK($student_detail->getSchoolOfOrigin()); if ($school) { $school_name = $school->getName(); } } echo input_auto_complete_tag('school_name', $school_name, '/school/getList', array('size' => 64), array('after_update_element' => 'function(f, s) {$("school_of_origin").updateFromInformalAutocomplete(f, s);}', 'min_chars' => 2)); ?> <?php echo form_error('school_of_origin'); ?> </td><td> <label ><?php echo __('Graduation year'); ?> </label><br/> <?php echo object_input_tag($student_detail, 'getGraduationYear', array('size' => 4, 'maxlength' => 4)); ?> <?php echo form_error('graduation_year'); ?>
<?php echo input_tag('filters[CODE]', isset($filters['CODE']) ? $filters['CODE'] : null, array('size' => 12)); ?> </td> <td class='filter'> <?php echo input_tag('filters[NAME]', isset($filters['NAME']) ? $filters['NAME'] : null, array('size' => 25)); ?> </td> <td class='filter'> <?php echo input_hidden_tag('filters[COL_ITEM_ID]', isset($filters['COL_ITEM_ID']) ? $filters['COL_ITEM_ID'] : null); if (isset($filters['COL_ITEM_ID']) && $filters['COL_ITEM_ID']) { echo input_auto_complete_tag('index', isset($filters['COL_ITEM_ID']) && $filters['COL_ITEM_ID'] ? ColItemPeer::retrieveByPk($filters['COL_ITEM_ID'])->getIndexNo() : '', '/col_item/getIndex', array('size' => 20), array('after_update_element' => 'function(f, s) {$("COL_ITEM_ID").updateFromInformalAutocomplete(f, s);}', 'min_chars' => 1)); } else { echo input_auto_complete_tag('index', null, '/col_item/getIndex', array('size' => 20), array('after_update_element' => 'function(f, s) {$("filters_COL_ITEM_ID").updateFromInformalAutocomplete(f, s);}', 'min_chars' => 1)); } ?> <?php #echo object_select_tag(isset($filters['col_item_id']) ? $filters['col_item_id'] : null, null, array ( 'include_blank' => true, 'related_class' => 'ColItem', 'text_method' => '__toString', 'control_name' => 'filters[col_item_id]', 'style'=>"width: 80px;", )) ?> </td> <!-- <td class='filter'> <?php #echo object_select_tag(isset($filters['col_status_id']) ? $filters['col_status_id'] : null, null, array ( 'include_blank' => true, 'related_class' => 'ColStatus', 'text_method' => '__toString', 'control_name' => 'filters[col_status_id]', )) ?> </td> --> <td class='filter'> <?php
echo link_to('Sent Messages', '@outbox', array('id' => 'sent')); ?> <?php echo link_to('Compose New Message', 'message/compose', array('id' => 'new', 'class' => "active")); ?> <div class="clear-both"></div> </div> <div class="box"> <div class="top"></div> <div class="content"> <?php echo form_tag('message/send'); ?> <div class="entry"> <div class="ttle">To (username):</div> <div> <?php echo input_auto_complete_tag('name', $to, 'user/autocomplete', array(), array('use_style' => true)); ?> <?php echo form_error('name'); ?> <div class="availableb">Type a username, or select a friend to PM.</div> </div> </div> <div class="entry"> <div class="ttle">Message Subject:</div> <?php echo input_tag('subject', $sf_params->get('subject', '')); ?> <?php echo form_error('subject'); ?>
// auto-generated by sfPropelCrud // date: 2008/04/04 15:24:10 use_helper('I18N', 'Javascript', 'Form', 'Object'); ?> <div id="member-search" style="padding-bottom: 10px;"> <div class="blue-shadow"><div class="blue-title blue-content">Search for a member</div></div> <div class="blue-shadow"> <div class="blue-content"> <?php echo form_remote_tag(array('update' => 'pager-holder', 'url' => 'user/ajaxUserPager', 'loading' => "Element.show('form-search-indicator')", 'complete' => "Element.hide('form-search-indicator');" . visual_effect('highlight', 'pager-holder'))); ?> <fieldset id='ajax_filter_fieldset' style="border: medium none;"> <span> <?php echo label_for('user_name', 'Name'), input_auto_complete_tag('user_name', '', 'user/autoMessageComplete?field=name', 'autocomplete=false', 'use_style=true'); ?> </span> <?php /* <span> <label for="campus">campus: <?php echo select_tag('user_campus', objects_for_select(CampusPeer::doSelect(new Criteria()), 'getId', 'getName', '', array('include_blank'=>true)), array('class'=>'xxx')) ?></label> <label for="department">department: <?php echo select_tag('user_department', objects_for_select(DepartmentPeer::doSelect(new Criteria()), 'getId', 'getName', '', array('include_blank'=>true)), array('class'=>'xxx')) ?></label> </span> */ ?> <span id="update_button"> <?php echo submit_tag('Search', array()); ?> </span>
<tr><td class="form"> <table class="form_content" width="100%"> <tbody> <tr> <td class='first' width="17%" style="vertical-align:middle;"><label><?php echo __('Nama'); ?> </label></td> <td class="first" width="2%" style="text-align:center; vertical-align:middle;">:</td> <td class="first" style="vertical-align:middle;"> <?php echo object_input_hidden_tag($employee_leave, 'getEmployeeId'); if (isset($employee_leave) && $employee_leave->getId()) { echo input_auto_complete_tag('employee_name', $employee_leave->getEmployee()->getName(), '/employee_job_history_o/getList', array('size' => 72), array('after_update_element' => 'function(f, s) {$("employee_id").updateFromInformalAutocomplete(f, s);}', 'min_chars' => 1)); } else { echo input_auto_complete_tag('employee_name', null, '/employee_job_history_o/getList', array('size' => 72), array('after_update_element' => 'function(f, s) {$("employee_id").updateFromInformalAutocomplete(f, s);}', 'min_chars' => 1)); } ?> </td> </tr> <tr> <td style="vertical-align:middle;"><label><?php echo __('Academic calendar'); ?> </label></td> <td style="text-align:center; vertical-align:middle;">:</td> <td style="vertical-align:middle;"> <?php echo object_select_tag($employee_leave, 'getAcademicCalendarId', array('related_class' => 'AcademicCalendar', 'include_blank' => true, 'peer_method' => 'doSelectSpecial')); ?>