Exemplo n.º 1
0
 /**
  * Renders the images editor
  * 
  * @return string
  *
  */
 public function render()
 {
     return sprintf($this->editorSkeleton, label_for('page_name', __('Page name:')), input_tag('w3s_page_name', ''), label_for('group_name', __('Group name:')), select_tag('w3s_groups_select', objects_for_select(W3sGroupPeer::getActiveGroups(), 'getId', 'getGroupName')), link_to_function(__('Add Page'), 'W3sPage.add()', 'class="link_button"'));
 }
Exemplo n.º 2
0
 public function renderGroupsSelect()
 {
     return select_tag('w3s_groups_select1', objects_for_select(W3sGroupPeer::getActiveGroups(), 'getId', 'getGroupName'));
 }