예제 #1
0
 public function ToHTMLFullVers()
 {
     global $link_to_admin_text_part;
     global $link_to_admin_manage_content;
     global $content_types_short;
     $args = array('action_link' => $link_to_admin_text_part, 'action_type' => 'full', 'obj_type' => TextPart::$type, 'id' => $this->id, 'prev_page' => $link_to_admin_manage_content . '?content_type=' . $content_types_short['about_us'], 'method' => 'get');
     return ActionButton($args);
 }
예제 #2
0
파일: report.php 프로젝트: Gerold103/lgmis
 public function ToHTMLFullVers()
 {
     global $link_to_admin_report;
     $args = array('action_link' => $link_to_admin_report, 'action_type' => 'full', 'obj_type' => self::$type, 'id' => $this->id, 'method' => 'get');
     return ActionButton($args);
 }
예제 #3
0
 public function ToHTMLFullVers()
 {
     global $link_to_admin_user_block;
     global $link_to_admin_manage_staff;
     $args = array('action_link' => $link_to_admin_user_block, 'action_type' => 'full', 'obj_type' => UserBlock::$type, 'id' => $this->id);
     return ActionButton($args);
 }
예제 #4
0
파일: article.php 프로젝트: Gerold103/lgmis
 public function ToHTMLFullVersUnsafe($id, $to_public = NULL)
 {
     global $link_to_admin_article;
     global $link_to_public_article;
     global $link_to_admin_manage_content;
     global $content_types_short;
     global $use_mod_rewrite;
     $args = array();
     if ($to_public === NULL) {
         $to_public = IsSessionPublic();
     }
     $mod_rewrite = 0;
     if (isset($use_mod_rewrite) && $use_mod_rewrite === true) {
         $mod_rewrite = 1;
     }
     if ($to_public) {
         $args = array('action_link' => $link_to_public_article, 'action_type' => 'full', 'obj_type' => self::$type, 'id' => $id, 'method' => 'get', 'mod_rewrite' => $mod_rewrite);
     } else {
         $args = array('action_link' => $link_to_admin_article, 'action_type' => 'full', 'obj_type' => self::$type, 'id' => $id, 'prev_page' => $link_to_admin_manage_content . '?content_type=' . $content_types_short['articles'], 'method' => 'get');
     }
     return ActionButton($args);
 }
예제 #5
0
 public function ToHTMLFullVers()
 {
     global $link_to_admin_direction;
     global $link_to_admin_manage_content;
     global $link_to_public_direction;
     global $content_types_short;
     global $link_to_public_content;
     global $use_mod_rewrite;
     $mod_rewrite = 0;
     if (isset($use_mod_rewrite) && $use_mod_rewrite === true) {
         $mod_rewrite = 1;
     }
     $args = array();
     if (IsSessionPublic()) {
         $args = array('action_link' => $link_to_public_direction, 'action_type' => 'full', 'obj_type' => Direction::$type, 'id' => $this->id, 'btn_text' => Language::Word('learn more'), 'method' => 'get', 'mod_rewrite' => $mod_rewrite, 'prev_page' => $link_to_public_content . '?content_type=' . $content_types_short['directions']);
     } else {
         $args = array('action_link' => $link_to_admin_direction, 'action_type' => 'full', 'obj_type' => Direction::$type, 'id' => $this->id, 'prev_page' => $link_to_admin_manage_content . '?content_type=' . $content_types_short['directions'], 'method' => 'get');
     }
     return ActionButton($args);
 }
예제 #6
0
 public function ToHTMLDel()
 {
     global $link_to_utility_interceptor;
     $res = '<div class="row">';
     $res .= '<div class="' . ColAllTypes(6) . '">';
     $argsdel = array('action_link' => $link_to_utility_interceptor, 'action_type' => 'del', 'obj_type' => RequestOnRegister::$type, 'id' => $this->id, 'btn_text' => 'Отклонить', 'info' => 'Вы уверены, что хотите отклонить запрос пользователя ' . $this->name . '?', 'method' => 'get');
     $res .= ActionButton($argsdel);
     $res .= '</div>';
     $res .= '<div class="' . ColAllTypes(6) . '">';
     $argsadd = array('action_link' => $link_to_utility_interceptor, 'action_type' => 'add', 'obj_type' => RequestOnRegister::$type, 'id' => $this->id, 'btn_text' => 'Принять', 'info' => 'Вы уверены, что хотите принять запрос пользователя ' . $this->name . '?', 'method' => 'get');
     return $res . ActionButton($argsadd) . '</div></div>';
 }
예제 #7
0
파일: user.php 프로젝트: Gerold103/lgmis
 public static function ToHTMLFullVersUnsafe($id)
 {
     global $link_to_admin_user;
     global $link_to_public_user;
     global $link_to_contacts;
     global $link_to_admin_manage_staff;
     global $use_mod_rewrite;
     $mod_rewrite = 0;
     if (isset($use_mod_rewrite) && $use_mod_rewrite === true) {
         $mod_rewrite = 1;
     }
     if (IsSessionPublic()) {
         $args = array('action_link' => $link_to_public_user, 'action_type' => 'full', 'obj_type' => self::$type, 'id' => $id, 'prev_page' => $link_to_contacts, 'btn_text' => Language::Word('open profile'), 'method' => 'get', 'mod_rewrite' => $mod_rewrite);
     } else {
         $args = array('action_link' => $link_to_admin_user, 'action_type' => 'full', 'obj_type' => self::$type, 'id' => $id, 'prev_page' => $link_to_admin_manage_staff, 'method' => 'get');
     }
     return ActionButton($args);
 }