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); }
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); }
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); }
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); }
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); }
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>'; }
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); }