本文整理汇总了PHP中caFormSubmitLink函数的典型用法代码示例。如果您正苦于以下问题:PHP caFormSubmitLink函数的具体用法?PHP caFormSubmitLink怎么用?PHP caFormSubmitLink使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了caFormSubmitLink函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: caEditorInspector
//.........这里部分代码省略.........
FooterManager::add($vo_change_type_view->render("change_type_html.php"));
TooltipManager::add("#inspectorChangeType", _t('Change Record Type'));
}
if ($t_item->getPrimaryKey() && $po_view->request->config->get($vs_table_name . '_show_add_child_control_in_inspector')) {
$vb_show_add_child_control = true;
if (is_array($va_restrict_add_child_control_to_types = $po_view->request->config->getList($vs_table_name . '_restrict_child_control_in_inspector_to_types')) && sizeof($va_restrict_add_child_control_to_types)) {
$t_type_instance = $t_item->getTypeInstance();
if (!in_array($t_type_instance->get('idno'), $va_restrict_add_child_control_to_types) && !in_array($t_type_instance->getPrimaryKey(), $va_restrict_add_child_control_to_types)) {
$vb_show_add_child_control = false;
}
}
if ($vb_show_add_child_control) {
if ((bool) $po_view->request->config->get($vs_table_name . '_enforce_strict_type_hierarchy')) {
// strict menu
$vs_type_list = $t_item->getTypeListAsHTMLFormElement('type_id', array('style' => 'width: 90px; font-size: 9px;'), array('childrenOfCurrentTypeOnly' => true, 'directChildrenOnly' => $po_view->request->config->get($vs_table_name . '_enforce_strict_type_hierarchy') == '~' ? false : true, 'returnHierarchyLevels' => true, 'access' => __CA_BUNDLE_ACCESS_EDIT__));
} else {
// all types
$vs_type_list = $t_item->getTypeListAsHTMLFormElement('type_id', array('style' => 'width: 90px; font-size: 9px;'), array('access' => __CA_BUNDLE_ACCESS_EDIT__));
}
if ($vs_type_list) {
$vs_buf .= "<div id='inspectorCreateChild'><div id='inspectorCreateChildButton'><a href='#' onclick='caCreateChildPanel.showPanel(); return false;'>" . caNavIcon($po_view->request, __CA_NAV_BUTTON_CHILD__, array('title' => _t('Create Child Record'))) . "</a></div></div>\n";
$vo_create_child_view = new View($po_view->request, $po_view->request->getViewsDirectoryPath() . "/bundles/");
$vo_create_child_view->setVar('t_item', $t_item);
$vo_create_child_view->setVar('type_list', $vs_type_list);
FooterManager::add($vo_create_child_view->render("create_child_html.php"));
TooltipManager::add("#inspectorCreateChildButton", _t('Create a child record under this one'));
}
}
}
}
if ($po_view->request->user->canDoAction('can_duplicate_' . $vs_table_name) && $t_item->getPrimaryKey()) {
$vs_buf .= '<div id="caDuplicateItemButton">';
$vs_buf .= caFormTag($po_view->request, 'Edit', 'DuplicateItemForm', $po_view->request->getModulePath() . '/' . $po_view->request->getController(), 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true, 'noTimestamp' => true));
$vs_buf .= caFormSubmitLink($po_view->request, caNavIcon($po_view->request, __CA_NAV_BUTTON_DUPLICATE__), '', 'DuplicateItemForm');
$vs_buf .= caHTMLHiddenInput($t_item->primaryKey(), array('value' => $t_item->getPrimaryKey()));
$vs_buf .= caHTMLHiddenInput('mode', array('value' => 'dupe'));
$vs_buf .= "</form>";
$vs_buf .= "</div>";
TooltipManager::add("#caDuplicateItemButton", _t('Duplicate this %1', mb_strtolower($vs_type_name, 'UTF-8')));
}
//
// Download media in lot ($vn_num_objects is only set for object lots)
if ($vn_num_objects > 0) {
$vs_buf .= "<div id='inspectorLotMediaDownloadButton'>" . caNavLink($po_view->request, caNavIcon($po_view->request, __CA_NAV_BUTTON_DOWNLOAD__), "button", $po_view->request->getModulePath(), $po_view->request->getController(), 'getLotMedia', array('lot_id' => $t_item->getPrimaryKey(), 'download' => 1), array()) . "</div>\n";
TooltipManager::add('#inspectorLotMediaDownloadButton', _t("Download all media associated with objects in this lot"));
}
//
// Download media in set
if ($vs_table_name == 'ca_sets' && sizeof($t_item->getItemRowIDs()) > 0) {
$vs_buf .= "<div id='inspectorSetMediaDownloadButton'>" . caNavLink($po_view->request, caNavIcon($po_view->request, __CA_NAV_BUTTON_DOWNLOAD__), "button", $po_view->request->getModulePath(), $po_view->request->getController(), 'getSetMedia', array('set_id' => $t_item->getPrimaryKey(), 'download' => 1), array()) . "</div>\n";
TooltipManager::add('#inspectorSetMediaDownloadButton', _t("Download all media associated with records in this set"));
}
$vs_more_info = '';
// list of sets in which item is a member
$t_set = new ca_sets();
if (is_array($va_sets = caExtractValuesByUserLocale($t_set->getSetsForItem($t_item->tableNum(), $t_item->getPrimaryKey(), array('user_id' => $po_view->request->getUserID(), 'access' => __CA_SET_READ_ACCESS__)))) && sizeof($va_sets)) {
$va_links = array();
foreach ($va_sets as $vn_set_id => $va_set) {
$va_links[] = "<a href='" . caEditorUrl($po_view->request, 'ca_sets', $vn_set_id) . "'>" . $va_set['name'] . "</a>";
}
$vs_more_info .= "<div><strong>" . (sizeof($va_links) == 1 ? _t("In set") : _t("In sets")) . "</strong> " . join(", ", $va_links) . "</div>\n";
}
// export options
if ($vn_item_id && ($vs_select = $po_view->getVar('available_mappings_as_html_select'))) {
$vs_more_info .= "<div class='inspectorExportControls'>" . caFormTag($po_view->request, 'exportItem', 'caExportForm', null, 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true));
$vs_more_info .= $vs_select;
示例2: caFormTag
<div class='col-xs-1 col-sm-1 col-md-1 col-lg-1'>
<div class="detailNavBgRight">
{{{nextLink}}}
</div><!-- end detailNavBgLeft -->
</div><!-- end col -->
</div>
<div class="row">
<div class="container">
<?php
if ($this->request->user->hasUserRole("founders_new") || $this->request->user->hasUserRole("admin") || $this->request->user->hasUserRole("curatorial_all_new") || $this->request->user->hasUserRole("curatorial_basic_new") || $this->request->user->hasUserRole("archives_new") || $this->request->user->hasUserRole("library_new")) {
// Export as PDF
print "<div id='bViewButtons'>";
print "<div class='reportTools'>";
print caFormTag($this->request, 'view/pdf', 'caExportForm', ($this->request->getModulePath() ? $this->request->getModulePath() . '/' : '') . $this->request->getController() . '/' . $this->request->getAction() . '/' . $this->request->getActionExtra(), 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true));
print "{$vs_export_format_select}" . caFormSubmitLink($this->request, _t('Download'), 'button', 'caExportForm') . "</form>\n";
print "</div>";
print "</div>";
}
if ($vs_lightbox_crumbs) {
?>
<div class="detailLightboxCrumb"><?php
print $vs_lightbox_crumbs;
?>
</div>
<?php
}
?>
<div class="artworkTitle">
<H4>{{{<unit relativeTo="ca_entities" delimiter="<br/>" restrictToRelationshipTypes="artist|creator"><l>^ca_entities.preferred_labels.name</l></unit>}}}</H4>
<H5><i>{{{ca_objects.preferred_labels.name}}}</i>, {{{ca_objects.creation_date}}}</H5>
示例3: _t
?>
<h3 class="tools"><?php
print _t("Search by set");
?>
:
<div>
<?php
print caFormTag($this->request, 'Index', 'caSearchSetsForm', 'find/SearchObjectRepresentations', 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true));
print "<select name='search' class='searchSetSelect'>\n";
foreach ($this->getVar("available_sets") as $vn_set_id => $va_set) {
$vs_set_identifier = $va_set['set_code'] ? $va_set['set_code'] : $vn_set_id;
$SELECTED = $vs_cur_search == "set:\"{$vs_set_identifier}\"" ? 'SELECTED="1"' : '';
print "<option value='set:\"{$vs_set_identifier}\"' {$SELECTED}>" . $va_set["name"] . "</option>\n";
}
print "</select>\n ";
print caFormSubmitLink($this->request, _t('Search') . ' ›', 'button', 'caSearchSetsForm');
print "</form>\n";
?>
</div>
</h3>
<?php
}
if ($vo_result) {
if ($vs_viz_list = Visualizer::getAvailableVisualizationsAsHTMLFormElement($vo_result->tableName(), 'viz', array('id' => 'caSearchVizOpts'), array('resultContext' => $vo_result_context, 'data' => $vo_result, 'restrictToTypes' => array($vo_result_context->getTypeRestriction($vb_type_restriction_has_changed))))) {
?>
<div class='visualize'>
<div id='vizLink'>
<?php
print "<a href='#' onclick='jQuery(\"#caSearchVizOptsContainer\").slideToggle(250); jQuery(\"#vizLink\").hide();return false;'>" . caNavIcon($this->request, __CA_NAV_BUTTON_VISUALIZE__) . " " . _t("Visualize") . "</a>";
?>
<div class='clear:both;'></div>
示例4: caFormTag
<?php
} else {
?>
<!-- Controls -->
<div class="caMediaOverlayControls">
<div class='close'><a href="#" onclick="caMediaPanel.hidePanel(); return false;" title="close"> </a></div>
<?php
if ($this->request->user->canDoAction('can_download_media')) {
?>
<div class='download'>
<?php
if (is_array($va_versions = $this->request->config->getList('ca_object_representation_download_versions'))) {
// -- provide user with a choice of versions to download
print caFormTag($this->request, 'DownloadAttributeMedia', 'caMediaDownloadForm', $this->request->getModulePath() . '/' . $this->request->getController(), 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true, 'noTimestamp' => true));
print caHTMLSelect('version', $va_versions, array('style' => 'font-size: 9px;'));
print caFormSubmitLink($this->request, "<img src='" . $this->request->getThemeUrlPath() . "/graphics/buttons/downloadWhite.png' border='0' title='" . _t("Download media") . "' valign='bottom'/>", '', 'caMediaDownloadForm', 'caMediaDownloadFormButton');
print caHTMLHiddenInput('value_id', array('value' => $t_value->getPrimaryKey()));
print caHTMLHiddenInput("download", array('value' => 1));
print "</form>\n";
}
?>
</div>
<?php
}
?>
<div class='objectInfo'>
<?php
//$vs_label = $t_object->getLabelForDisplay();
//print (mb_strlen($vs_label) > 80) ? mb_substr($vs_label, 0, 80)."..." : $vs_label;
//if($t_object->get("idno")){
示例5: caFormTag
<div id="rolodex">
<h1>Rolodex</h1>
<?php
if ($this->request->user && ($this->request->user->hasUserRole("founders_new") || $this->request->user->hasUserRole("admin") || $this->request->user->hasUserRole("curatorial_all_new") || $this->request->user->hasUserRole("curatorial_basic_new") || $this->request->user->hasUserRole("archives_new") || $this->request->user->hasUserRole("library_new"))) {
?>
<h5>Find contacts using the search fields below</h5>
<?php
print "<div class='row'>";
print caFormTag($this->request, 'Index', 'caRolodexForm', null, 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true, 'submitOnReturn' => true));
print "<div class='col-sm-4'><span class='formLabel'>" . _t('First name') . "</span>" . caHTMLTextInput("forename", array('width' => '250px')) . "</div>";
print "<div class='col-sm-4'><span class='formLabel'>" . _t('Last name/Organization name') . "</span>" . caHTMLTextInput("surname", array('width' => '250px')) . "</div>";
//print "<div class='col-sm-4'><span class='formLabel'>"._t('Affiliation')."</span>".caHTMLTextInput("company", array());
print "<div class='submit'>" . caFormSubmitLink($this->request, _t('Search >'), 'searchSubmit', 'caRolodexForm') . "</div></div>";
?>
<?php
print "</form>\n";
print "</div>";
if ($o_results = $this->getVar('results')) {
print "<br/><h1>Results</h1>";
print "<hr>";
while ($o_results->nextHit()) {
print "<div class='row results'>";
print "<div class='col-sm-4'>" . $o_results->getWithTemplate("<l><b>^ca_entities.preferred_labels.displayname</b></l><br/>\n");
if ($o_results->get("ca_entities.job_title")) {
print $o_results->getWithTemplate("^ca_entities.job_title<br/>");
}
print $o_results->getWithTemplate("^ca_entities.affiliation", array('delimiter' => "<br/>"));
示例6: htmlspecialchars
print htmlspecialchars($this->request->session->getVar('quick_search_last_search'), ENT_QUOTES, 'UTF-8');
?>
" onfocus="this.value='';"/>
<?php
} else {
?>
<input type="text" name="search" length="15" id="caQuickSearchFormText" value="<?php
print htmlspecialchars($this->request->session->getVar('quick_search_last_search'), ENT_QUOTES, 'UTF-8');
?>
" onfocus="<?php
print htmlspecialchars($this->request->session->getVar('quick_search_last_search'), ENT_QUOTES, 'UTF-8');
?>
"/>
<?php
}
print caFormSubmitLink($this->request, "<img src='" . $this->request->getThemeUrlPath() . "/graphics/buttons/glass.png' border='0' style='float:right;' alt='" . _t("Search") . "'/>", 'caQuickSearchFormSubmit', 'caQuickSearchForm');
?>
<!--<input type="hidden" name="no_cache" value="1"/>-->
</form>
</div>
<?php
}
?>
<ul class="sf-menu" style="background-color:#<?php
print $va_menu_color;
?>
;">
<?php
print $va_menu_bar = $this->getVar('nav')->getHTMLMenuBar('menuBar', $this->request);
?>
</ul>
示例7: _t
print _t("Collection Searches");
$vs_path .= "Collections";
break;
# ------------------------
# ------------------------
case "ca_occurrences":
print _t("Occurrence Searches");
$vs_path .= "Occurrences";
break;
# ------------------------
}
print "</div><div style='margin-bottom:15px; padding:0px 0px 0px 5px;'>";
foreach ($va_searches as $vs_search_type => $va_search_info) {
if (sizeof($va_search_info) > 0) {
print "<div style='float:" . ($vs_search_type == "basic_search" ? "left" : "right") . ";'>";
print caFormTag($po_request, 'doSavedSearch', 'caSavedSearchesForm' . $vs_table . $vs_search_type, $vs_path . ($vs_search_type == "advanced_search" ? "Advanced" : ""), 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true));
print ($vs_search_type == "advanced_search" ? _t("advanced") : _t("basic")) . ": <select name='saved_search_key' style='width:100px;'>\n";
foreach (array_reverse($va_search_info) as $vs_key => $va_search) {
$vs_search = strip_tags($va_search['_label']);
print "<option value='" . htmlspecialchars($vs_key, ENT_QUOTES, 'UTF-8') . "'>" . $vs_search . "</option>\n";
}
print "</select>\n ";
print caFormSubmitLink($po_request, _t('Search') . ' ›', 'button', 'caSavedSearchesForm' . $vs_table . $vs_search_type);
print "</form></div>\n";
}
}
print "<div style='clear:both; height:1px;'><!-- empty --></div></div>";
}
}
?>
</div>
示例8: _t
print ' ' . _t("%1 of %2", $this->getVar('representation_index'), sizeof($va_reps)) . ' ';
}
if ($vn_id = $this->getVar('next_representation_id')) {
print "<a href='#' onClick='jQuery(\"#{$vs_container_id}\").load(\"" . caNavUrl($this->request, 'Detail', 'Object', 'GetRepresentationInfo', array('representation_id' => (int) $vn_id, 'object_id' => (int) $t_object->getPrimaryKey())) . "\");'>→</a>";
}
?>
</div>
</td>
<?php
if (caObjectsDisplayDownloadLink($this->request)) {
?>
<td align="right" text-align="right">
<?php
print caFormTag($this->request, 'DownloadRepresentation', 'downloadRepresentationForm', 'Detail/Object', 'get', 'multipart/form-data', null, array('disableUnsavedChangesWarning' => true));
print caHTMLSelect('version', $va_versions, array('id' => $vs_display_type == 'media_overlay' ? 'caMediaOverlayVersionControl' : 'caMediaDisplayVersionControl', 'class' => 'caMediaOverlayControls'), array('value' => 'original'));
print ' ' . caFormSubmitLink($this->request, caNavIcon($this->request, __CA_NAV_BUTTON_DOWNLOAD__, null, array('align' => 'middle')), '', 'downloadRepresentationForm');
print caHTMLHiddenInput('representation_id', array('value' => $t_rep->getPrimaryKey()));
print caHTMLHiddenInput('object_id', array('value' => $t_object->getPrimaryKey()));
print caHTMLHiddenInput('download', array('value' => 1));
?>
</form>
</td>
<?php
}
?>
</tr>
</table>
</div><!-- end caMediaOverlayControls -->
<div id="<?php
print $vs_display_type == 'media_overlay' ? 'caMediaOverlayContent' : 'caMediaDisplayContent';
示例9: caFormTag
$vs_buf .= caFormTag($this->request, 'Edit', 'NewChildForm', null, 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true));
$vs_buf .= _t('Add a %1 under this', $vs_type_list) . caHTMLHiddenInput($t_item->primaryKey(), array('value' => '0')) . caHTMLHiddenInput('parent_id', array('value' => $t_item->getPrimaryKey()));
$vs_buf .= '<div id="caTypeChangePanelControlButtons">';
$vs_buf .= '<div class="saveButton">' . caFormSubmitLink($this->request, caNavIcon($this->request, __CA_NAV_BUTTON_SAVE__), '', 'NewChildForm') . " " . _t('Save') . "</div>";
$vs_buf .= caJSButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t('Cancel'), 'caChangeTypeFormCancelButton', array('onclick' => 'caCreateChildPanel.hidePanel(); return false;'), array());
$vs_buf .= "</div>";
$vs_buf .= "</form></div>\n";
}
if ($t_item->tableName() == 'ca_collections' && $this->request->config->get('ca_objects_x_collections_hierarchy_enabled')) {
$t_object = new ca_objects();
if ((bool) $this->request->config->get('ca_objects_enforce_strict_type_hierarchy')) {
// strict menu
$vs_type_list = $t_object->getTypeListAsHTMLFormElement('type_id', array('style' => 'width: 90px; font-size: 9px;'), array('childrenOfCurrentTypeOnly' => true, 'directChildrenOnly' => $this->request->config->get($vs_table_name . '_enforce_strict_type_hierarchy') == '~' ? false : true, 'returnHierarchyLevels' => true, 'access' => __CA_BUNDLE_ACCESS_EDIT__));
} else {
// all types
$vs_type_list = $t_object->getTypeListAsHTMLFormElement('type_id', array('style' => 'width: 90px; font-size: 9px;'), array('access' => __CA_BUNDLE_ACCESS_EDIT__));
}
$vs_buf .= '<div style="border-top: 1px solid #aaaaaa; margin-top: 5px; font-size: 10px; padding-top:10px" class="addChild">';
$vs_buf .= caFormTag($this->request, 'Edit', 'NewChildObjectForm', 'editor/objects/ObjectEditor', 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true));
$vs_buf .= _t('Add a %1 under this', $vs_type_list) . caHTMLHiddenInput('object_id', array('value' => '0')) . caHTMLHiddenInput('collection_id', array('value' => $t_item->getPrimaryKey()));
$vs_buf .= '<div id="caTypeChangePanelControlButtons">';
$vs_buf .= '<div class="saveButton">' . caFormSubmitLink($this->request, caNavIcon($this->request, __CA_NAV_BUTTON_SAVE__), '', 'NewChildObjectForm') . " " . _t('Save') . "</div>";
$vs_buf .= caJSButton($this->request, __CA_NAV_BUTTON_CANCEL__, _t('Cancel'), 'caChangeTypeFormCancelButton', array('onclick' => 'caCreateChildPanel.hidePanel(); return false;'), array());
$vs_buf .= "</div>";
$vs_buf .= "</form></div>\n";
}
print $vs_buf;
?>
</div>
</div>
示例10: _t
?>
<input type='hidden' name='download' value='1'/></form>
</div><!-- end col -->
<?php
}
?>
<div class="col">
<?php
print _t("Download results as") . ":<br/>";
print caFormTag($this->request, 'export', 'caExportForm', $this->request->getModulePath() . '/' . $this->request->getController(), 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true));
$va_options = array();
foreach ($this->getVar('export_formats') as $vn_i => $va_format_info) {
$va_options[$va_format_info['name']] = $va_format_info['code'];
}
print caHTMLSelect('export_format', $va_options, array('class' => 'searchToolsSelect'), array('value' => $this->getVar('current_export_format'), 'width' => '150px')) . "\n";
print caFormSubmitLink($this->request, _t('Download'), 'button', 'caExportForm') . " ›";
?>
<input type='hidden' name='download' value='1'/></form>
</div>
<?php
if (in_array($t_subject->tableName(), array('ca_objects', 'ca_object_representations')) && $this->request->user->canDoAction('can_download_ca_object_representations') && is_array($va_download_versions = $this->request->config->getList('ca_object_representation_download_versions'))) {
?>
<div class="col">
<?php
print _t("Download media as") . ":<br/>";
?>
<form id="caDownloadMediaFromSearchResult">
<?php
$va_options = array();
foreach ($va_download_versions as $vs_version) {
示例11: _t
if (sizeof($va_sets['public']) == 1) {
print _t("1 set created by the public");
} else {
print _t("%1 sets created by the public", sizeof($va_sets['public']));
}
?>
</div>
</h3><h3><?php
print _t('Show sets');
?>
:
<div><?php
print caFormTag($this->request, 'ListSets', 'caSetDisplayMode', $this->request->getModulePath() . '/' . $this->request->getController(), 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true));
$va_options = array(_t('Available to you') => 0, _t('By other users') => 1, _t('By the public') => 2);
print caHTMLSelect('mode', $va_options, array('class' => 'searchToolsSelect'), array('value' => $this->getVar('mode'), 'width' => '130px')) . "\n";
print caFormSubmitLink($this->request, _t('Show'), 'button', 'caSetDisplayMode') . " ›";
?>
</form>
<?php
?>
</div>
</h3>
<?php
} else {
?>
<h3><?php
print _t('Your sets');
?>
:
<div><?php
if (sizeof($va_sets['mine']) == 1) {
示例12: caFormTag
}
}
}
if ($this->request->user->hasUserRole("founders_new") || $this->request->user->hasUserRole("admin") || $this->request->user->hasUserRole("curatorial_all_new") || $this->request->user->hasUserRole("curatorial_basic_new") || $this->request->user->hasUserRole("archives_new") || $this->request->user->hasUserRole("library_new")) {
// Export as PDF
print "<div class='reportTools'>";
print caFormTag($this->request, 'view/pdf', 'caExportForm', ($this->request->getModulePath() ? $this->request->getModulePath() . '/' : '') . $this->request->getController() . '/' . $this->request->getAction(), 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true));
print "<select name='export_format'>";
foreach ($va_export_formats as $va_export_format) {
print "<option value='" . $va_export_format["code"] . "'>" . $va_export_format["name"] . "</option>";
}
print "</select> ";
print caHTMLHiddenInput('key', array('value' => $vs_browse_key));
print caHTMLHiddenInput('view', array('value' => 'pdf'));
print caHTMLHiddenInput('download', array('value' => 1));
print caFormSubmitLink($this->request, _t('Download'), 'button', 'caExportForm') . "</form>\n";
print "</div>";
}
?>
</div>
</div><!-- end col -->
</div><!-- end row -->
<div class="row">
<div class="<?php
print ($vs_left_col_class = $o_set_config->get("set_detail_left_col_class")) ? $vs_left_col_class : "col-sm-9 col-md-9 col-lg-8";
?>
">
<div id="lbSetResultLoadContainer">
<?php
}
// !ajax
示例13: _t
# ------------------------
case "ca_collections":
print _t("Collection Sets");
$vs_path .= "Collections";
break;
# ------------------------
# ------------------------
case "ca_occurrences":
print _t("Occurrence Sets");
$vs_path .= "Occurrences";
break;
# ------------------------
}
print "</div><div style='margin-bottom:15px; padding:0px 0px 0px 5px;'>";
foreach ($va_sets as $vn_i => $va_set_info) {
if (sizeof($va_set_info) > 0) {
print caFormTag($po_request, 'doSavedSearch', 'caSearchSetsForm' . $vs_table, $vs_path, 'post', 'multipart/form-data', '_top', array('disableUnsavedChangesWarning' => true));
print "<select name='search' style='width:300px;'>\n";
foreach ($va_set_info as $vn_id => $va_set) {
print "<option value='set:" . $vn_id . "'>" . $va_set["name"] . "</option>\n";
}
print "</select>\n ";
print caFormSubmitLink($po_request, _t('Search') . ' ›', 'button', 'caSearchSetsForm' . $vs_table);
print "</form>\n";
}
}
print "<div style='clear:both; height:1px;'><!-- empty --></div></div>";
}
}
?>
</div>
示例14: _t
<form>
<?php
print _t('Display %1 version', caHTMLSelect('version', $va_versions, array('id' => 'caMediaOverlayVersionControl', 'class' => 'caMediaOverlayControls'), array('value' => $vs_show_version)));
$va_rep_info = $this->getVar('version_info');
if ($this->getVar('version_type') && $va_rep_info['WIDTH'] > 0 && $va_rep_info['HEIGHT'] > 0) {
print " (" . $this->getVar('version_type') . "; " . $va_rep_info['WIDTH'] . " x " . $va_rep_info['HEIGHT'] . "px)";
}
?>
</form>
</td>
<td align="right" text-align="right">
<?php
print caFormTag($this->request, 'DownloadMedia', 'downloadMediaForm', $this->request->getModulePath() . '/' . $this->request->getController(), 'get', 'multipart/form-data', null, array('disableUnsavedChangesWarning' => true));
print caHTMLSelect('version', $va_versions, array('id' => 'caMediaOverlayVersionControl', 'class' => 'caMediaOverlayControls'), array('value' => 'original'));
print ' ' . caFormSubmitLink($this->request, caNavIcon($this->request, __CA_NAV_BUTTON_DOWNLOAD__, null, array('align' => 'middle'), array('graphicsPath' => $this->getVar('graphicsPath'))), '', 'downloadMediaForm');
print caHTMLHiddenInput('value_id', array('value' => $t_value->getPrimaryKey()));
print caHTMLHiddenInput('download', array('value' => 1));
?>
</form>
</td>
</tr>
</table>
</div><!-- end caMediaOverlayControls -->
<div id="caMediaOverlayContent">
<?php
// return standard tag
$t_value->useBlobAsMediaField(true);
print $t_value->getMediaTag('value_blob', $vs_show_version, array_merge($va_display_options, array('id' => 'caMediaOverlayContentMedia', 'viewer_base_url' => $this->request->getBaseUrlPath())));
?>