本文整理汇总了PHP中html::initial_value方法的典型用法代码示例。如果您正苦于以下问题:PHP html::initial_value方法的具体用法?PHP html::initial_value怎么用?PHP html::initial_value使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类html
的用法示例。
在下文中一共展示了html::initial_value方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
<form class="cmxform" >
Lumping and splitting are special cases of Relationships. They implement a means to implement changes in the taxon list over time, as individual taxa are split up into a set of taxa, or the opposite, where several taxa are lumped together into another.<br/><br/>
<?php
if ($can_split == false) {
echo html::initial_value($values, 'taxon:taxon') . ' ' . $splitRecord->forward_term . ' ';
$first = true;
foreach ($split as $target) {
$t1 = ORM::factory('taxa_taxon_list', array('preferred' => 't', 'taxon_meaning_id' => $target->to_taxon_meaning_id));
$t2 = ORM::factory('taxon', $t1->taxon_id);
echo ($first == true ? '' : ', ') . $t2->taxon;
$first = false;
}
echo '.<br/><br/>';
}
if ($can_lump == false) {
echo html::initial_value($values, 'taxon:taxon') . ' ' . $lumpRecord->forward_term . ' ';
$first = true;
foreach ($lumped as $target) {
$t1 = ORM::factory('taxa_taxon_list', array('preferred' => 't', 'taxon_meaning_id' => $target->to_taxon_meaning_id));
$t2 = ORM::factory('taxon', $t1->taxon_id);
echo ($first == true ? '' : ', ') . $t2->taxon;
$first = false;
}
echo '.<br/><br/>';
}
if ($can_split || $can_lump) {
?>
<input id="LStaxon" name="LStaxon" value="" />
<input type="hidden" id="LStaxon_meaning_id" />
<input type="button" value="Add to List" onClick="addLStaxon()" class="ui-corner-all ui-state-default button" /><br/>
<table id="LS_taxa_table" class="ui-widget ui-widget-content"><thead class="ui-widget-header" ><tr class="headingRow" >
示例2:
" method="post" enctype="multipart/form-data">
<?php
echo $metadata;
?>
<fieldset>
<input type="hidden" name="occurrence_comment:id" value="<?php
echo $id;
?>
" />
<input type="hidden" name="occurrence_comment:occurrence_id" value="<?php
echo html::initial_value($values, 'occurrence_comment:occurrence_id');
?>
" />
<legend>Occurrence Comment</legend>
<?php
if (html::initial_value($values, 'occurrence_comment:auto_generated') === 't') {
?>
<p>This comment was generated by the auto verification rule
<?php
echo html::initial_value($values, 'occurrence_comment:generated_by');
?>
.</p>
<?php
}
echo data_entry_helper::textarea(array('label' => 'Comment', 'fieldname' => 'occurrence_comment:comment', 'default' => html::initial_value($values, 'occurrence_comment:comment')));
?>
</fieldset>
<?php
echo html::form_buttons($id != null, false, false);
?>
</form>
示例3: isset
"
<?php
echo $enabled;
?>
/> <?php
echo html::error_message($model->getError('valid_max'));
?>
</li>
<li id="li_valid_date_in_past">
<label class="narrow" for="valid_date_in_past">Date is in past</label><?php
echo form::checkbox('valid_date_in_past', TRUE, isset($model->valid_date_in_past) and $model->valid_date_in_past == 't', 'class="vnarrow" ' . $enabled);
echo html::error_message($model->getError('valid_date_in_past'));
?>
</li>
<li id="li_valid_time"><label class="narrow" for="valid_integer">Time</label><?php
echo form::checkbox('valid_time', TRUE, isset($model->valid_time) and $model->valid_time == 't', 'class="vnarrow" ' . $enabled);
?>
</li>
</ol>
</fieldset>
<?php
// Output the view that lets this custom attribute associate with websites, surveys, checklists
// or whatever is appropriate for the attribute type.
$this->associationsView->other_data = $other_data;
$this->associationsView->model = $model;
echo $this->associationsView;
echo $metadata;
echo html::form_buttons(html::initial_value($values, $model->object_name . ':id') != null);
?>
</form>
示例4: array
<legend>Verification rule details</legend>
<?php
data_entry_helper::link_default_stylesheet();
data_entry_helper::enable_validation('entry-form');
if (isset($values['verification_rule:id'])) {
?>
<input type="hidden" name="verification_rule:id" value="<?php
echo html::initial_value($values, 'verification_rule:id');
?>
" />
<?php
}
echo data_entry_helper::text_input(array('label' => 'Title', 'fieldname' => 'verification_rule:title', 'class' => 'control-width-4', 'validation' => array('required'), 'default' => html::initial_value($values, 'verification_rule:title')));
echo data_entry_helper::textarea(array('label' => 'Description', 'fieldname' => 'verification_rule:description', 'class' => 'control-width-6', 'default' => html::initial_value($values, 'verification_rule:description')));
echo data_entry_helper::text_input(array('label' => 'Test Type', 'fieldname' => 'verification_rule:test_type', 'class' => 'control-width-4', 'validation' => array('required'), 'default' => html::initial_value($values, 'verification_rule:test_type')));
echo data_entry_helper::text_input(array('label' => 'Source URL', 'fieldname' => 'verification_rule:source_url', 'class' => 'control-width-6', 'default' => html::initial_value($values, 'verification_rule:source_url'), 'helpText' => 'When this verification rule file was imported, this identifies the name of the file ' . 'it was imported from'));
echo data_entry_helper::text_input(array('label' => 'Source Filename', 'fieldname' => 'verification_rule:source_filename', 'class' => 'control-width-6', 'default' => html::initial_value($values, 'verification_rule:source_filename')));
echo data_entry_helper::text_input(array('label' => 'Error Message', 'fieldname' => 'verification_rule:error_message', 'class' => 'control-width-6', 'validation' => array('required'), 'default' => html::initial_value($values, 'verification_rule:error_message')));
echo data_entry_helper::checkbox(array('label' => 'Reverse Rule', 'fieldname' => 'verification_rule:reverse_rule', 'default' => html::initial_value($values, 'verification_rule:reverse_rule'), 'helpText' => 'Tick this box to reverse the rule logic - i.e. items that pass the test are flagged as failures.'));
echo data_entry_helper::textarea(array('label' => 'Metadata', 'fieldname' => 'metaFields:metadata', 'class' => 'control-width-6', 'default' => html::initial_value($values, 'metaFields:metadata'), 'helpText' => 'Additional settings from the header of the verification rule file, in parameter=value format with ' . 'one parameter per line'));
echo data_entry_helper::textarea(array('label' => 'Other Data', 'fieldname' => 'metaFields:data', 'class' => 'control-width-6', 'default' => html::initial_value($values, 'metaFields:data'), 'helpText' => 'Additional settings from the data part of the verification rule file, with blocks of data items ' . 'started by a header name in square brackets, followed by parameters in parameter=value format with ' . 'one parameter per line'));
echo $metadata;
echo html::form_buttons(html::initial_value($values, 'verification_rule:id') != null, false, false);
data_entry_helper::link_default_stylesheet();
data_entry_helper::$dumped_resources[] = 'jquery';
data_entry_helper::$dumped_resources[] = 'jquery_ui';
data_entry_helper::$dumped_resources[] = 'fancybox';
echo data_entry_helper::dump_javascript();
?>
</fieldset>
</form>
示例5: switch
$name .= ':' . $attr['id'];
}
echo '<li><label for="">' . $attr['caption'] . "</label>\n";
switch ($attr['data_type']) {
case 'D':
echo form::input($name, $attr['value'], 'class="date-picker"');
break;
case 'V':
echo form::input($name, $attr['value'], 'class="vague-date-picker"');
break;
case 'L':
echo form::dropdown($name, $values['terms_' . $attr['termlist_id']], $attr['raw_value']);
break;
case 'B':
echo form::dropdown($name, array('' => '', '0' => 'false', '1' => 'true'), $attr['value']);
break;
default:
echo form::input($name, $attr['value']);
}
echo '<br/>' . html::error_message($model->getError($name)) . '</li>';
}
?>
</ol>
</fieldset>
<?php
echo html::form_buttons(html::initial_value($values, 'occurrence:id') != null, false, false);
?>
</form>
示例6: switch
}
switch ($attr['data_type']) {
case 'D':
case 'V':
echo data_entry_helper::date_picker(array('label' => $attr['caption'], 'fieldname' => $name, 'default' => $attr['value']));
break;
case 'L':
echo data_entry_helper::select(array('label' => $attr['caption'], 'fieldname' => $name, 'default' => $attr['raw_value'], 'lookupValues' => $values['terms_' . $attr['termlist_id']], 'blankText' => '<Please select>'));
break;
case 'B':
echo data_entry_helper::checkbox(array('label' => $attr['caption'], 'fieldname' => $name, 'default' => $attr['value']));
break;
default:
echo data_entry_helper::text_input(array('label' => $attr['caption'], 'fieldname' => $name, 'default' => $attr['value']));
}
}
?>
</ol>
</fieldset>
<?php
}
echo html::form_buttons(html::initial_value($values, 'identifier:id') != null, false, false);
data_entry_helper::$dumped_resources[] = 'jquery';
data_entry_helper::$dumped_resources[] = 'json';
data_entry_helper::$dumped_resources[] = 'jquery_ui';
data_entry_helper::$dumped_resources[] = 'fancybox';
data_entry_helper::link_default_stylesheet();
echo data_entry_helper::dump_javascript();
?>
</form>
示例7:
?>
" />
<legend>Taxon Group details</legend>
<ol>
<li>
<label for="title">Title</label>
<input id="title" name="taxon_group:title" value="<?php
echo html::initial_value($values, 'taxon_group:title');
?>
" />
<?php
echo html::error_message($model->getError('taxon_group:title'));
?>
</li>
<li>
<label for="title">External key</label>
<input id="title" name="taxon_group:external_key" value="<?php
echo html::initial_value($values, 'taxon_group:external_key');
?>
" />
<?php
echo html::error_message($model->getError('taxon_group:external_key'));
?>
</li>
</ol>
</fieldset>
<?php
echo html::form_buttons(html::initial_value($values, 'taxon_group:id') != null);
?>
</form>
示例8: switch
switch ($attr['data_type']) {
case 'D':
case 'V':
echo data_entry_helper::date_picker(array('label' => $attr['caption'], 'fieldname' => $name, 'default' => $attr['value']));
break;
case 'L':
echo data_entry_helper::date_picker(array('label' => $attr['caption'], 'fieldname' => $name, 'default' => $attr['raw_value'], 'lookupValues' => $values['terms_' . $attr['termlist_id']]));
break;
case 'B':
echo data_entry_helper::checkbox(array('label' => $attr['caption'], 'fieldname' => $name, 'default' => $attr['value']));
break;
default:
echo data_entry_helper::text_input(array('label' => $attr['caption'], 'fieldname' => $name, 'default' => $attr['value']));
}
}
?>
</ol>
</fieldset>
</div>
<?php
}
echo html::form_buttons(html::initial_value($values, 'location:id') != null, $disabled_input === 'YES');
data_entry_helper::$dumped_resources[] = 'jquery';
data_entry_helper::$dumped_resources[] = 'jquery_ui';
data_entry_helper::$dumped_resources[] = 'fancybox';
data_entry_helper::enable_validation('location-edit');
data_entry_helper::link_default_stylesheet();
echo data_entry_helper::dump_javascript();
?>
</form>
示例9:
?>
</div><div id="div-provide_for_verification"><?php
echo data_entry_helper::checkbox(array('label' => 'Provides data for verification', 'helpText' => 'Check this box if the website provides its data to other agreement participants for verification.', 'fieldname' => 'websites_website_agreement:provide_for_verification', 'default' => html::initial_value($values, 'websites_website_agreement:provide_for_verification'), 'labelClass' => 'control-width-4'));
?>
</div><div id="div-receive_for_verification"><?php
echo data_entry_helper::checkbox(array('label' => 'Receives data for verification', 'helpText' => 'Check this box if the website receives data from other agreement participants for verification.', 'fieldname' => 'websites_website_agreement:receive_for_verification', 'default' => html::initial_value($values, 'websites_website_agreement:receive_for_verification'), 'labelClass' => 'control-width-4'));
?>
</div><div id="div-provide_for_data_flow"><?php
echo data_entry_helper::checkbox(array('label' => 'Provides data for data flow', 'helpText' => 'Check this box if the website provides its data to other agreement participants for data flow, e.g. for passing data onto national information portals.', 'fieldname' => 'websites_website_agreement:provide_for_data_flow', 'default' => html::initial_value($values, 'websites_website_agreement:provide_for_data_flow'), 'labelClass' => 'control-width-4'));
?>
</div><div id="div-receive_for_data_flow"><?php
echo data_entry_helper::checkbox(array('label' => 'Receives data for data flow', 'helpText' => 'Check this box if the website receives data from other agreement participants for data flow, e.g. for passing data onto national information portals.', 'fieldname' => 'websites_website_agreement:receive_for_data_flow', 'default' => html::initial_value($values, 'websites_website_agreement:receive_for_data_flow'), 'labelClass' => 'control-width-4'));
?>
</div><div id="div-provide_for_moderation"><?php
echo data_entry_helper::checkbox(array('label' => 'Provides data for moderation', 'helpText' => 'Check this box if the website provides its data to other agreement participants for moderation, e.g. to check images before publishing.', 'fieldname' => 'websites_website_agreement:provide_for_moderation', 'default' => html::initial_value($values, 'websites_website_agreement:provide_for_moderation'), 'labelClass' => 'control-width-4'));
?>
</div><div id="div-receive_for_moderation"><?php
echo data_entry_helper::checkbox(array('label' => 'Receives data for moderation', 'helpText' => 'Check this box if the website receives data from other agreement participants for moderation, e.g. to check images before publishing.', 'fieldname' => 'websites_website_agreement:receive_for_moderation', 'default' => html::initial_value($values, 'websites_website_agreement:receive_for_moderation'), 'labelClass' => 'control-width-4'));
?>
</div>
</fieldset>
<?php
echo html::form_buttons($id != null, false, false);
data_entry_helper::$dumped_resources[] = 'jquery';
data_entry_helper::$dumped_resources[] = 'jquery_ui';
data_entry_helper::$dumped_resources[] = 'fancybox';
data_entry_helper::enable_validation('websites-website-agreement-edit');
data_entry_helper::link_default_stylesheet();
echo data_entry_helper::dump_javascript();
?>
</form>
示例10: array
?>
" /><br/>
<?php
echo data_entry_helper::date_picker(array('label' => 'Date', 'fieldname' => 'sample:date', 'default' => html::initial_value($values, 'sample:date'), 'class' => 'required'));
echo data_entry_helper::sref_and_system(array('label' => 'Spatial Ref', 'fieldname' => 'sample:entered_sref', 'geomFieldname' => 'sample:geom', 'default' => html::initial_value($values, 'sample:entered_sref'), 'defaultGeom' => html::initial_value($values, 'sample:geom'), 'systems' => spatial_ref::system_list(), 'defaultSystem' => html::initial_value($values, 'sample:entered_sref_system'), 'class' => 'control-width-3', 'validation' => 'required'));
?>
<p class="instruct">Zoom the map in by double-clicking then single click on the sample's centre to set the
spatial reference. The more you zoom in, the more accurate the reference will be.</p>
<?php
$readAuth = data_entry_helper::get_read_auth(0 - $_SESSION['auth_user']->id, kohana::config('indicia.private_key'));
echo map_helper::map_panel(array('readAuth' => $readAuth, 'presetLayers' => array('google_satellite', 'google_streets'), 'editLayer' => true, 'layers' => array(), 'initial_lat' => 52, 'initial_long' => -2, 'initial_zoom' => 7, 'width' => 870, 'height' => 400, 'initialFeatureWkt' => html::initial_value($values, 'sample:geom'), 'standardControls' => array('layerSwitcher', 'panZoom')));
echo data_entry_helper::text_input(array('label' => 'Location Name', 'fieldname' => 'sample:location_name', 'default' => html::initial_value($values, 'sample:location_name')));
echo data_entry_helper::textarea(array('label' => 'Recorder Names', 'helpText' => 'Enter the names of the recorders, one per line', 'fieldname' => 'sample:recorder_names', 'default' => html::initial_value($values, 'sample:recorder_names')));
echo data_entry_helper::select(array('label' => 'Sample Method', 'fieldname' => 'sample:sample_method_id', 'default' => html::initial_value($values, 'sample:sample_method_id'), 'lookupValues' => $other_data['method_terms'], 'blankText' => '<Please select>'));
echo data_entry_helper::textarea(array('label' => 'Comment', 'fieldname' => 'sample:comment', 'default' => html::initial_value($values, 'sample:comment')));
echo data_entry_helper::text_input(array('label' => 'External Key', 'fieldname' => 'sample:external_key', 'default' => html::initial_value($values, 'sample:external_key')));
?>
</fieldset>
<fieldset>
<legend>Survey Specific Attributes</legend>
<ol>
<?php
foreach ($values['attributes'] as $attr) {
$name = 'smpAttr:' . $attr['sample_attribute_id'];
// if this is an existing attribute, tag it with the attribute value record id so we can re-save it
if ($attr['id']) {
$name .= ':' . $attr['id'];
}
switch ($attr['data_type']) {
case 'D':
case 'V':
示例11: switch
switch ($attr['data_type']) {
case 'D':
case 'V':
echo data_entry_helper::date_picker(array('label' => $attr['caption'], 'fieldname' => $name, 'default' => $attr['value']));
break;
case 'L':
echo data_entry_helper::select(array('label' => $attr['caption'], 'fieldname' => $name, 'default' => $attr['raw_value'], 'lookupValues' => $values['terms_' . $attr['termlist_id']], 'blankText' => '<Please select>'));
break;
case 'B':
echo data_entry_helper::checkbox(array('label' => $attr['caption'], 'fieldname' => $name, 'default' => $attr['value']));
break;
default:
echo data_entry_helper::text_input(array('label' => $attr['caption'], 'fieldname' => $name, 'default' => $attr['value']));
}
}
?>
</ol>
</fieldset>
<?php
}
echo html::form_buttons(html::initial_value($values, 'survey:id') != null);
data_entry_helper::$dumped_resources[] = 'jquery';
data_entry_helper::$dumped_resources[] = 'jquery_ui';
data_entry_helper::$dumped_resources[] = 'fancybox';
data_entry_helper::enable_validation('survey-edit');
data_entry_helper::link_default_stylesheet();
data_entry_helper::$javascript .= "\n// ensure the parent lookup does not allow an inappropriate survey to be selected (i.e. self or wrong website)\nfunction setParentFilter() { \n var filter={\"query\":{}};\n filter.query.notin=['id', [1]];\n filter.query.where=['website_id', \$('#survey\\\\:website_id').val()];\n filter.query=JSON.stringify(filter.query);\n \$('#survey\\\\:parent_id\\\\:title').setExtraParams(filter);\n}\n\$('#survey\\\\:website_id').change(function() {\n \$('#survey\\\\:parent_id\\\\:title').val('');\n \$('#survey\\\\:parent_id').val('');\n setParentFilter();\n});\nsetParentFilter();\n";
echo data_entry_helper::dump_javascript();
?>
</form>
示例12: array
<fieldset>
<input type="hidden" name="website_agreement:id" value="<?php
echo html::initial_value($values, 'website_agreement:id');
?>
" />
<legend>Website Agreement Details</legend>
<?php
echo data_entry_helper::text_input(array('label' => 'Agreement title', 'helpText' => 'Enter the title of the agreement', 'fieldname' => 'website_agreement:title', 'default' => html::initial_value($values, 'website_agreement:title')));
echo data_entry_helper::textarea(array('label' => 'Description', 'helpText' => 'Enter an optional description of the agreement', 'fieldname' => 'website_agreement:description', 'default' => html::initial_value($values, 'website_agreement:description')));
echo data_entry_helper::select(array('label' => 'Providing data for reporting', 'helpText' => 'Select the requirements of participants with respect to providing data for reporting. When data is provided ' . 'by a website, other websites participating in the same agreement will be able to report on this data if they select to receive ' . 'data for reporting.', 'fieldname' => 'website_agreement:provide_for_reporting', 'default' => html::initial_value($values, 'website_agreement:provide_for_reporting'), 'lookupValues' => array('D' => 'Not allowed', 'O' => 'Optional', 'A' => 'Optional, but must be setup by an administrator', 'R' => 'Required')));
echo data_entry_helper::select(array('label' => 'Receive data for reporting', 'helpText' => 'Select the requirements of participants with respect to receiving data for reporting. When a website selects ' . 'to receive data for reporting, reports run on the website can include data from other websites participating in the same ' . 'agreement if they elect to provide data for reporting.', 'fieldname' => 'website_agreement:receive_for_reporting', 'default' => html::initial_value($values, 'website_agreement:receive_for_reporting'), 'lookupValues' => array('D' => 'Not allowed', 'O' => 'Optional', 'A' => 'Optional, but must be setup by an administrator', 'R' => 'Required')));
echo data_entry_helper::select(array('label' => 'Providing data for peer review', 'helpText' => 'Select the requirements of participants with respect to providing data for peer review. When data is provided ' . 'by a website, other websites participating in the same agreement will be able to review this data if they select to receive ' . 'data for peer review.', 'fieldname' => 'website_agreement:provide_for_peer_review', 'default' => html::initial_value($values, 'website_agreement:provide_for_peer_review'), 'lookupValues' => array('D' => 'Not allowed', 'O' => 'Optional', 'A' => 'Optional, but must be setup by an administrator', 'R' => 'Required')));
echo data_entry_helper::select(array('label' => 'Receive data for peer review', 'helpText' => 'Select the requirements of participants with respect to receiving data for peer review. When a website selects ' . 'to receive data for peer review, review processes such as record reviewing and commenting run on the website can include ' . 'data from other websites participating in the same agreement if they elect to provide data for peer review.', 'fieldname' => 'website_agreement:receive_for_peer_review', 'default' => html::initial_value($values, 'website_agreement:receive_for_peer_review'), 'lookupValues' => array('D' => 'Not allowed', 'O' => 'Optional', 'A' => 'Optional, but must be setup by an administrator', 'R' => 'Required')));
echo data_entry_helper::select(array('label' => 'Providing data for verification', 'helpText' => 'Select the requirements of participants with respect to providing data for verification. When data is provided ' . 'by a website, other websites participating in the same agreement will be able to verify this data if they select to receive ' . 'data for verification.', 'fieldname' => 'website_agreement:provide_for_verification', 'default' => html::initial_value($values, 'website_agreement:provide_for_verification'), 'lookupValues' => array('D' => 'Not allowed', 'O' => 'Optional', 'A' => 'Optional, but must be setup by an administrator', 'R' => 'Required')));
echo data_entry_helper::select(array('label' => 'Receive data for verification', 'helpText' => 'Select the requirements of participants with respect to receiving data for verification. When a website selects ' . 'to receive data for verification, verification systems run on the website can include data from other websites ' . 'participating in the same agreement if they elect to provide data for verification.', 'fieldname' => 'website_agreement:receive_for_verification', 'default' => html::initial_value($values, 'website_agreement:receive_for_verification'), 'lookupValues' => array('D' => 'Not allowed', 'O' => 'Optional', 'A' => 'Optional, but must be setup by an administrator', 'R' => 'Required')));
echo data_entry_helper::select(array('label' => 'Providing data for data flow', 'helpText' => 'Select the requirements of participants with respect to providing data for data flow. When data is provided ' . 'by a website, other websites participating in the same agreement will be able to pass this data on (for example ' . 'to a national informaiton portal) if they select to receive data for data flow.', 'fieldname' => 'website_agreement:provide_for_data_flow', 'default' => html::initial_value($values, 'website_agreement:provide_for_data_flow'), 'lookupValues' => array('D' => 'Not allowed', 'O' => 'Optional', 'A' => 'Optional, but must be setup by an administrator', 'R' => 'Required')));
echo data_entry_helper::select(array('label' => 'Receive data for data flow', 'helpText' => 'Select the requirements of participants with respect to receiving data for data flow. When a website selects ' . 'to receive data for data flow, they can pass on data from other websites for data flow purposes (e.g. to a national information ' . 'portal) from other websites participating in the same agreement if they elect to provide data for data flow.', 'fieldname' => 'website_agreement:receive_for_data_flow', 'default' => html::initial_value($values, 'website_agreement:receive_for_data_flow'), 'lookupValues' => array('D' => 'Not allowed', 'O' => 'Optional', 'A' => 'Optional, but must be setup by an administrator', 'R' => 'Required')));
echo data_entry_helper::select(array('label' => 'Providing data for moderation', 'helpText' => 'Select the requirements of participants with respect to providing data for moderation. When data is provided ' . 'by a website, other websites participating in the same agreement will be able to moderate this data, e.g. to check ' . 'images before publication, if they select to receive data for moderation.', 'fieldname' => 'website_agreement:provide_for_moderation', 'default' => html::initial_value($values, 'website_agreement:provide_for_moderation'), 'lookupValues' => array('D' => 'Not allowed', 'O' => 'Optional', 'A' => 'Optional, but must be setup by an administrator', 'R' => 'Required')));
echo data_entry_helper::select(array('label' => 'Receive data for moderation', 'helpText' => 'Select the requirements of participants with respect to receiving data for moderation. When a website selects ' . 'to receive data for modeartion, they can perform moderation tasks such as checking images before publication ' . 'from other websites participating in the same agreement if they elect to provide data for moderation.', 'fieldname' => 'website_agreement:receive_for_moderation', 'default' => html::initial_value($values, 'website_agreement:receive_for_moderation'), 'lookupValues' => array('D' => 'Not allowed', 'O' => 'Optional', 'A' => 'Optional, but must be setup by an administrator', 'R' => 'Required')));
?>
</fieldset>
<?php
echo html::form_buttons($id != null, false, false);
data_entry_helper::$dumped_resources[] = 'jquery';
data_entry_helper::$dumped_resources[] = 'jquery_ui';
data_entry_helper::$dumped_resources[] = 'fancybox';
data_entry_helper::enable_validation('website-agreement-edit');
data_entry_helper::link_default_stylesheet();
echo data_entry_helper::dump_javascript();
?>
</form>
示例13: foreach
}
?>
>
<option value=''><Warehouse></option>
<?php
if (!is_null($this->auth_filter)) {
$websites = ORM::factory('website')->in('id', $this->auth_filter['values'])->orderby('title', 'asc')->find_all();
} else {
$websites = ORM::factory('website')->orderby('title', 'asc')->find_all();
}
foreach ($websites as $website) {
echo ' <option value="' . $website->id . '" ';
if ($website->id == $website_id) {
echo 'selected="selected" ';
}
echo '>' . $website->title . '</option>';
}
?>
</select>
<?php
echo html::error_message($model->getError('termlist:website_id'));
?>
</li>
</ol>
</fieldset>
<?php
echo html::form_buttons(html::initial_value($values, 'termlist:id') != null && html::initial_value($values, 'termlist:id') != '', false, false);
echo html::error_message($model->getError('deleted'));
?>
</form>
</div>
示例14: array
echo $metadata;
?>
<fieldset>
<input type="hidden" name="identifiers_subject_observation:id" value="<?php
echo $id;
?>
" />
<input type="hidden" name="identifiers_subject_observation:subject_observation_id" value="<?php
echo html::initial_value($values, 'identifiers_subject_observation:subject_observation_id');
?>
" />
<legend>Identifier Details</legend>
<?php
echo data_entry_helper::autocomplete(array('label' => 'Identifier', 'fieldname' => 'identifiers_subject_observation:identifier_id', 'table' => 'identifier', 'captionField' => 'coded_value', 'valueField' => 'id', 'extraParams' => $readAuth, 'default' => html::initial_value($values, 'identifiers_subject_observation:identifier_id'), 'defaultCaption' => html::initial_value($values, 'identifier:coded_value'), 'validation' => 'required'));
echo data_entry_helper::checkbox(array('fieldname' => 'identifiers_subject_observation:matched', 'label' => 'Matched', 'helpText' => 'Does this observation match a known identifier?', 'default' => html::initial_value($values, 'identifiers_subject_observation:matched')));
echo data_entry_helper::select(array('fieldname' => 'identifiers_subject_observation:verified_status', 'label' => 'Verified status', 'helpText' => 'Status of this identifier observation.', 'lookupValues' => array('' => 'Please select>', 'U' => 'unknown', 'M' => 'misread', 'V' => 'verified'), 'default' => html::initial_value($values, 'identifiers_subject_observation:verified_status'), 'validation' => 'required'));
?>
</fieldset>
<?php
if (array_key_exists('attributes', $values) && count($values['attributes']) > 0) {
?>
<fieldset>
<legend>Custom Attributes</legend>
<ol>
<?php
foreach ($values['attributes'] as $attr) {
$name = 'isoAttr:' . $attr['identifiers_subject_observation_attribute_id'];
// if this is an existing attribute, tag it with the attribute value record id so we can re-save it
if ($attr['id']) {
$name .= ':' . $attr['id'];
示例15:
?>
" method="post">
<?php
echo $metadata;
?>
<fieldset>
<input type="hidden" name="trigger:id" value="<?php
echo html::initial_value($values, 'trigger:id');
?>
" />
<legend>Trigger details</legend>
<?php
echo data_entry_helper::text_input(array('label' => 'Name', 'fieldname' => 'trigger:name', 'default' => html::initial_value($values, 'trigger:name'), 'class' => 'control-width-5'));
echo data_entry_helper::textarea(array('label' => 'Description', 'fieldname' => 'trigger:description', 'default' => html::initial_value($values, 'trigger:description')));
echo data_entry_helper::select(array('label' => 'Trigger template', 'fieldname' => 'trigger:trigger_template_file', 'default' => html::initial_value($values, 'trigger:trigger_template_file'), 'lookupValues' => $other_data['triggerFileList']));
echo data_entry_helper::checkbox(array('label' => 'Public', 'fieldname' => 'trigger:public', 'default' => html::initial_value($values, 'trigger:public')));
data_entry_helper::link_default_stylesheet();
// No need to re-link to jQuery
data_entry_helper::$dumped_resources[] = 'jquery';
data_entry_helper::$dumped_resources[] = 'jquery_ui';
data_entry_helper::$dumped_resources[] = 'fancybox';
echo data_entry_helper::dump_javascript();
?>
</fieldset>
<fieldset class="button-set">
<input type="submit" name="submit" value="<?php
echo kohana::lang('misc.next');
?>
" class="ui-corner-all ui-state-default button ui-priority-primary" />
<input type="submit" name="submit" value="<?php
echo kohana::lang('misc.cancel');