protected function drawProperties()
 {
     $params = array(array('name' => 'w3s_ppt_link', 'label' => 'Link', 'type' => 'input', 'options' => array('onchange' => 'objMenuBuilder.saveMenuLinkImage(1)')), array('name' => 'w3s_ppt_button1', 'button_for' => 'ppt_image', 'type' => 'submit', 'options' => array('value' => '...', 'class' => 'combined_button', 'onclick' => 'objMenuBuilder.showImages(\'w3s_ppt_image\'); return false;')), array('name' => 'w3s_ppt_image', 'label' => 'Image', 'type' => 'input', 'options' => array('class' => 'combined_input', 'onblur' => 'objMenuBuilder.saveMenuLinkImage()')), array('name' => 'w3s_ppt_button2', 'button_for' => 'ppt_rollover_image', 'type' => 'submit', 'options' => array('value' => '...', 'class' => 'combined_button', 'onclick' => 'objMenuBuilder.showImages(\'w3s_ppt_rollover_image\');; return false;')), array('name' => 'w3s_ppt_rollover_image', 'label' => 'Rollover', 'type' => 'input', 'options' => array('class' => 'combined_input', 'onblur' => 'objMenuBuilder.saveMenuLinkImage()')), array('name' => 'w3s_ppt_int_link', 'label' => 'Int. Link', 'choices' => $this->getSitePages(), 'options' => array('onchange' => '$(\'w3s_ppt_ext_link\').value=\'\';objMenuBuilder.saveMenuLinkImage(1);')), array('name' => 'w3s_ppt_ext_link', 'label' => 'Ext. link', 'type' => 'input', 'options' => array('onblur' => '$(\'w3s_ppt_int_link\').selectedIndex=0;objMenuBuilder.saveMenuLinkImage();')));
     $properties = new w3sProperties($params);
     return $properties->render();
 }
 /**
  * Draws the image's properties
  * 
  * @return string
  *
  */
 protected function drawProperties()
 {
     $pages = $this->getSitePages();
     $linkedPage = w3sCommonFunctions::getPageNameFromLink($this->attributes['linkedTo']);
     $search = array_search($linkedPage, $pages);
     if ($search !== false) {
         $selectedPageIndex = $search;
         $externalLink = '';
     } else {
         $selectedPageIndex = -1;
         $externalLink = $this->attributes['linkedTo'];
     }
     $params = array(array('name' => 'w3s_ppt_image', 'label' => 'Image', 'type' => 'input', 'options' => array('value' => w3sCommonFunctions::getStdBasename($this->attributes["fullImagePath"]), 'disabled' => true, 'class' => 'disabled')), array('name' => 'w3s_ppt_width', 'label' => 'Width', 'type' => 'input', 'options' => array('value' => $this->attributes["width"], 'disabled' => true, 'class' => 'disabled')), array('name' => 'w3s_ppt_height', 'label' => 'Height', 'type' => 'input', 'options' => array('value' => $this->attributes["height"], 'disabled' => true, 'class' => 'disabled')), array('name' => 'w3s_ppt_size', 'label' => 'Size', 'type' => 'input', 'options' => array('value' => $this->attributes["size"], 'disabled' => true, 'class' => 'disabled')), array('name' => 'w3s_ppt_img_alignment', 'label' => 'Align', 'choices' => array("w3s_none" => "Not aligned", "w3s_left" => "Left", "w3s_right" => "Right")), array('name' => 'w3s_ppt_title_text', 'label' => 'Title', 'type' => 'input', 'options' => array('value' => $this->attributes["title"])), array('name' => 'w3s_ppt_alt_text', 'label' => 'Alt', 'type' => 'input', 'options' => array('value' => $this->attributes["alt"])), array('name' => 'w3s_ppt_int_link', 'label' => 'Int. Link', 'default' => $selectedPageIndex, 'choices' => $pages), array('name' => 'w3s_ppt_ext_link', 'label' => 'Ext. Link', 'type' => 'input', 'options' => array('value' => $externalLink)), array('name' => 'w3s_ppt_htmlImage', 'type' => 'hidden', 'options' => array('value' => $this->image->getImage())), array('name' => 'w3s_ppt_imageType', 'type' => 'hidden', 'options' => array('value' => $this->attributes["imageType"])));
     $properties = new w3sProperties($params);
     return $properties->render();
 }