Exemplo n.º 1
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $ap = $this->get_action_performer();
     $ap->set_prefix('PC_Action_');
     $ap->set_mod_folder('module/');
     $tpl = FWS_Props::get()->tpl();
     $tpl->set_path('templates/');
     $tpl->set_cache_folder(FWS_Path::server_app() . 'cache/');
     // add the home-breadcrumb
     $url = new FWS_URL();
     $url->set('action', 'home');
     $this->add_breadcrumb('PHP-Check', $url->to_url());
 }
Exemplo n.º 2
0
 /**
  * builds an input-box with an delete-button
  * 
  * @param FWS_URL $target_url the base-url
  * @param int $id the id of the entry
  * @param string $name the name of the field
  * @param string $value the value of the input-box
  * @param int $action_type the action-type for the delete-action
  * @return string the html-code
  */
 private function _get_input_delete_field($target_url, $id, $name, $value, $action_type)
 {
     $locale = FWS_Props::get()->locale();
     $result = '<input type="text" name="' . $name . '[' . $id . ']" size="30" maxlength="50"';
     $result .= ' value="' . $value . '" style="margin-bottom: 3px;" />&nbsp;';
     $result .= '<input type="button" value="' . $locale->_('Delete') . '" onclick="document.location.href = \'';
     $result .= $target_url->to_url() . '&amp;' . TDL_URL_AT . '=' . $action_type;
     $result .= '&amp;' . TDL_URL_SID . '=' . $id . '\';" style="margin-bottom: 3px;" /><br />';
     return $result;
 }
Exemplo n.º 3
0
 /**
  * Constructor
  */
 public function __construct()
 {
     self::set_append_extern_vars(true);
     parent::__construct();
 }