function render_toolbar_publish(&$toolbar) { $section_options =& AMPContent_Lookup::instance('sectionMap'); $section_options = array('' => 'Select Section') + $section_options; $class_options =& AMPContent_Lookup::instance('classes'); $content = $this->_renderer->span(AMP_TEXT_PUBLISH_TO . ': ', array('class' => 'searchform_label')) . AMP_buildSelect('section_id', $section_options, null, $this->_renderer->makeAttributes(array('class' => 'searchform_element'))) . ' ' . AMP_buildSelect('class_id', $class_options, 1, $this->_renderer->makeAttributes(array('class' => 'searchform_element'))) . ' '; return $toolbar->addTab('publish', $content); }
function renderPublish(&$toolbar) { $renderer =& $this->_getRenderer(); $section_options =& AMPContent_Lookup::instance('sectionMap'); $section_options = array('' => 'Select Section') + $section_options; $class_options =& AMPContent_Lookup::instance('classes'); $toolbar->addEndContent($renderer->inDiv('<a name="publish_targeting"></a>' . $renderer->inSpan(AMP_TEXT_PUBLISH_TO . ': ', array('class' => 'searchform_label')) . AMP_buildSelect('section_id', $section_options, null, $renderer->makeAttributes(array('class' => 'searchform_element'))) . ' ' . AMP_buildSelect('class_id', $class_options, 1, $renderer->makeAttributes(array('class' => 'searchform_element'))) . ' ' . $toolbar->renderDefault('publish') . ' ' . "<input type='button' name='hidePublish' value='Cancel' onclick='window.change_any( \"publish_targeting\");'> ", array('class' => 'AMPComponent_hidden', 'id' => 'publish_targeting')), 'publish_targeting'); return "<input type='button' name='showPublish' value='Publish' onclick='window.change_any( \"publish_targeting\");window.scrollTo( 0, document.anchors[\"publish_targeting\"].y );'> "; }
function renderCopy(&$toolbar) { $renderer = AMP_get_renderer(); $class_options = AMP_base_select_options(AMP_lookup('classes'), 'Select Class'); $publicpage_options = AMP_base_select_options(AMP_lookup('introtexts'), 'Select Public Page'); $section_options_content = AMP_base_select_options(AMP_lookup('sectionMap'), 'Select Section ( ' . AMP_TEXT_CONTENT_PAGES . ' )'); $section_options_list = AMP_base_select_options(AMP_lookup('sectionMap'), 'Select Section ( ' . AMP_TEXT_LIST_PAGES . ' )'); $copy_selects = array(AMP_TEXT_LIST_NAV_LAYOUT_TARGET_COPY, $renderer->newline(), AMP_buildSelect('section_id_content', $section_options_content, null, $renderer->makeAttributes(array('class' => 'searchform_element'))), AMP_buildSelect('section_id_list', $section_options_list, null, $renderer->makeAttributes(array('class' => 'searchform_element'))), $renderer->newline(), AMP_buildSelect('class_id', $class_options, null, $renderer->makeAttributes(array('class' => 'searchform_element'))), AMP_buildSelect('publicpage_id', $publicpage_options, null, $renderer->makeAttributes(array('class' => 'searchform_element'))), $renderer->newline()); return $toolbar->addTab('copy', $copy_selects); }
function renderMove(&$toolbar) { $renderer =& $this->_getRenderer(); $type_options =& AMPContent_Lookup::instance('linkTypeMap'); if ($type_options) { $type_options = array('' => 'Select Link Type') + $type_options; } else { $type_options = array('' => 'Select Link Type'); } $toolbar->addEndContent($renderer->inDiv('<a name="move_targeting"></a>' . AMP_buildSelect('link_type_id', $type_options, null, $renderer->makeAttributes(array('class' => 'searchform_element'))) . ' ' . $toolbar->renderDefault('move') . ' ' . "<input type='button' name='hideMove' value='Cancel' onclick='window.change_any( \"move_targeting\");'> ", array('class' => 'AMPComponent_hidden', 'id' => 'move_targeting')), 'move_targeting'); return "<input type='button' name='showMove' value='Move' onclick='window.change_any( \"move_targeting\");'> "; }
function AMP_navCalendarSearchState() { $renderer = new AMPDisplay_HTML(); $add_link = $renderer->link(AMP_CONTENT_URL_EVENT_ADD, 'Post an Event', array('class' => 'homeeventslink')); $search_link = $renderer->link(AMP_CONTENT_URL_EVENT_SEARCH, 'Search Events', array('class' => 'homeeventslink')); $state_values = AMPSystem_Lookup::instance('Regions_US'); $select_values = array('' => 'Select Your State'); if ($state_values) { $select_values = $select_values + $state_values; } return $search_link . $renderer->newline() . '<form method="GET" action="' . AMP_CONTENT_URL_EVENT_LIST . '">' . AMP_buildSelect('state', $select_values, null, $renderer->makeAttributes(array('onChange' => 'if ( this.value != "") this.form.submit( );'))) . '<input name="search" value="Search" type="hidden">' . '</form>' . $renderer->newline() . $add_link . $renderer->newline(); }
function renderMove(&$toolbar) { $renderer =& $this->_getRenderer(); $section_options =& AMPContent_Lookup::instance('sectionMap'); if ($section_options) { $section_options = array('' => 'Select Section', AMP_CONTENT_MAP_ROOT_SECTION => '__' . AMP_SITE_NAME . '__') + $section_options; } else { $section_options = array('' => 'Select Section', AMP_CONTENT_MAP_ROOT_SECTION => AMP_SITE_NAME); } $toolbar->addEndContent($renderer->inDiv('<a name="move_targeting"></a>' . AMP_buildSelect('section_id', $section_options, null, $renderer->makeAttributes(array('class' => 'searchform_element'))) . ' ' . $toolbar->renderDefault('move') . ' ' . "<input type='button' name='hideMove' value='Cancel' onclick='window.change_any( \"move_targeting\");'> ", array('class' => 'AMPComponent_hidden', 'id' => 'move_targeting')), 'move_targeting'); //return "<input type='button' name='showMove' value='Move' onclick='window.change_any( \"move_targeting\");window.scrollTo( 0, document.anchors[\"move_targeting\"].y );'> "; return "<input type='button' name='showMove' value='Move' onclick='window.change_any( \"move_targeting\");\$( \"move_targeting\").scrollTo();'> "; }
function _HTML_gallerySelect() { $sel_attr = array('class' => 'go', 'onchange' => 'AMP_openURL( "' . AMP_SITE_URL . AMP_CONTENT_URL_GALLERY . '?gal="+this.value );'); return AMP_buildSelect('gallery_jump', AMPContent_Lookup::instance('galleryMap'), $this->_gallery->id, $this->_HTML_makeAttributes($sel_attr)); }
function renderGallery(&$toolbar) { $renderer =& $this->_getRenderer(); $gallery_options =& AMPContent_Lookup::instance('galleries'); $gallery_options = array('' => sprintf(AMP_TEXT_SELECT, AMP_TEXT_GALLERY)) + $gallery_options; $toolbar->addEndContent($renderer->inDiv('<a name="gallery_targeting"></a>' . AMP_buildSelect('gallery_id', $gallery_options, null, $renderer->makeAttributes(array('class' => 'searchform_element'))) . ' ' . $toolbar->renderDefault('gallery') . ' ' . "<input type='button' name='hideGallery' value='" . AMP_TEXT_CANCEL . "' onclick='window.change_any( \"gallery_targeting\");'> ", array('class' => 'AMPComponent_hidden', 'id' => 'gallery_targeting')), 'gallery_targeting'); return "<input type='button' name='showGallery' value='" . AMP_TEXT_GALLERY . "' onclick='window.change_any( \"gallery_targeting\");if ( \$(\"recalculate_sizes\").style.display==\"block\") window.change_any( \"recalculate_sizes\" );window.scrollTo( 0, document.anchors[\"gallery_targeting\"].y );'> "; }
function renderRelate(&$toolbar) { $renderer =& $this->_getRenderer(); if ($base_section_options) { $related_section_options = array('' => 'Select Related Section') + $base_section_options; } else { $related_section_options = array('' => 'Select Related Section'); } $relate_select = AMP_buildSelect('related_section_id', $section_options, null, $renderer->makeAttributes(array('class' => 'searchform_element'))); return $toolbar->addTab('relate', $relate_select); /* $toolbar->addEndContent( $renderer->inDiv( '<a name="relate_targeting"></a>' . AMP_buildSelect( 'related_section_id', $section_options, null, $renderer->makeAttributes( array( 'class' => 'searchform_element'))) . ' ' . $toolbar->renderDefault( 'relate') . ' ' . "<input type='button' name='hideRelate' value='Cancel' onclick='window.change_any( \"relate_targeting\");'> ", array( 'class' => 'AMPComponent_hidden', 'id' => 'relate_targeting') ), 'relate_targeting'); return "<input type='button' name='showRelate' value='Relate' " . "onclick='window.change_any( \"relate_targeting\" );" . "if ( $(\"move_targeting\").style.display==\"block\") window.change_any( \"move_targeting\");" . "if ( $(\"region_targeting\").style.display==\"block\") window.change_any( \"region_targeting\");" . "window.scrollTo( 0, document.anchors[\"relate_targeting\"].y );'> "; */ }
#echo $listtypes->Fields("name");?> </OPTION> <?php /* $listtypes->MoveNext(); $listtypes__index++; } $listtypes__index=0; $listtypes->MoveFirst(); } */ ?> </select>--> <?php print AMP_buildSelect( 'listtype', AMPConstantLookup_Listtypes::instance('listtypes'), $subtype->Fields( 'listtype' )); ?> </td> </tr> <tr> <td class="name">Use Section Header</td> <td><input name="header" type="checkbox" value="1" <?php If (($subtype->Fields("header")) == "1" or (!$_GET[id])) { echo "CHECKED";} ?>></td> </tr> <tr> <td class="name">Hide Content List</td> <td><input name="usetype" type="checkbox" id="usetype2" value="checkbox" <?php If (($subtype->Fields("usetype")) == "1") { echo "CHECKED";} ?>> </td> </tr> <tr>
function _makeSelect($value, $fieldname, $currentrow, $values) { $id = $currentrow[$this->_id_field]; $select_name = $fieldname . "[{$id}]"; $attr = array('class' => $this->_css_class_elements); $renderer =& $this->_getRenderer(); return AMP_buildSelect($select_name, $values, $value, $renderer->makeAttributes($attr)); }
function multiselect($name, $value = null, $options = array(), $attr_set = array()) { $attr_set['multiple'] = 1; return AMP_buildSelect($name . '[]', $options, $value, $this->makeAttributes($attr_set)); }
function _HTML_selectDestinationRegion() { $region_select = AMP_buildSelect("region_destination", AMPSystem_Lookup::instance('regions'), null, ' class="searchform_element"'); return "<span class='searchform_label'>Set Region To: </span>" . $region_select . " <input type='submit' class='searchform_element' name='" . $this->submitGroup . "[regionize]' value='Change Region'> " . "<input type='button' class='searchform_element' name='hideRegion' value='Cancel' onclick='window.change_any(\"article_regionMenu\");'>"; }