本文整理汇总了PHP中get_link函数的典型用法代码示例。如果您正苦于以下问题:PHP get_link函数的具体用法?PHP get_link怎么用?PHP get_link使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_link函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: get_formulaire
function get_formulaire($M = array())
{
global $array_magic_type;
extract(stripslashes_r($M));
?>
<form method="POST" action="<?php
echo get_link("Magics", "Admin");
?>
">
<?php
echo forumulaire_db('Caranille_Magics', $M);
?>
<br/>
<input type="submit" name="Back" value="Annuler" />
<input type="submit" name="End_<?php
echo request_confirm('Add') ? 'Add' : 'Edit';
?>
" value="Terminer"/>
<?php
if (request_confirm('Second_Edit')) {
?>
<input type="submit" name="Second_Delete" value="Supprimer"><?php
}
?>
</form>
<?php
}
开发者ID:galadie,项目名称:Caranille-RPG,代码行数:28,代码来源:Magics.php
示例2: display_page_content
function display_page_content()
{
?>
<div id="edit-header" class="eventtypelist">
<div class="nav-left column">
<h1>Edit Existing Event Types</h1>
</div>
<div class="nav-right column">
<a class="hcd_button" href="<?php
echo get_link("admin/add_type");
?>
">Add an Event Type</a>
</div>
<div class="clearleft"></div>
</div>
<p class="announce"><b>Event Colors:</b> Each Event Type is associated with a color that you may customize. We will setup colors that work with the color palette of your website and they will be displayed on the calendar where the event is listed.</p>
<div id="table-header" class="eventlist">
<strong class="item-link">Click Name to Edit</strong>
<span class="item-filename">Color Preview</span>
</div>
<ul id="listitems" class="managelist">
<?php
$types = EventTypes::FindAll();
foreach ($types as $type) {
echo "\t\t\t<li><a class=\"item-link\" href=\"" . get_link("/admin/edit_type/{$type->id}") . "\">{$type->name}</a> <span class=\"colorpreview\" style=\"background-color: {$type->color}; color: {$type->text_color};\">{$type->name}</span></li>\n";
}
?>
</ul>
<?php
}
开发者ID:highchair,项目名称:hcd-trunk,代码行数:34,代码来源:list_event_types.php
示例3: index
public function index()
{
$this->load->model("user_manager_model");
$this->user_manager_model->set_user_logged_out();
redirect(get_link("admin_no_access"));
return;
}
开发者ID:NaszvadiG,项目名称:BurgeCMF,代码行数:7,代码来源:AE_Logout.php
示例4: get_formulaire_Menu
function get_formulaire_Menu($Menu = array())
{
extract(stripslashes_r($Menu));
if (isset($Menu_Module)) {
set_values_db('Caranille_Menus', 'Menu_Link', list_menu($Menu_Module));
}
?>
<form method="POST" action="<?php
echo get_link("Menus", "Admin");
?>
">
<h2><?php
echo request_confirm('Add') ? 'Ajout' : 'Modification';
?>
du Menu</h2>
<?php
echo forumulaire_db('Caranille_Menus', $Menu);
?>
<br/>
<input type="submit" name="Back" value="Annuler" />
<input type="submit" name="End_<?php
echo request_confirm('Add') ? 'Add' : 'Edit';
?>
" value="Terminer"/>
<?php
if (request_confirm('Second_Edit')) {
?>
<input type="submit" name="Second_Delete" value="Supprimer"><?php
}
?>
</form>
<?php
}
开发者ID:galadie,项目名称:Caranille-RPG,代码行数:33,代码来源:Menus.php
示例5: get_crumbs
function get_crumbs()
{
global $page;
$_TITLE = get_title();
//массив заголовков
if ($page == 'main') {
$crumbs = '';
} else {
foreach ($_TITLE as $k => $v) {
switch ($k) {
//case 0: $crumbs = $crumbs . '<a href="'.get_link('main').'">'.$v.'</a>'; break;
case 1:
if ($page == 'static') {
$crumbs = $crumbs . ' <span>:: ' . $v . '</span>';
} else {
$crumbs = $crumbs . ' <span>:: </span><a href="' . get_link('page') . '">' . $v . '</a>';
}
break;
case 2:
$crumbs = $crumbs . ' <span>:: </span><a href="' . get_link('category') . '">' . $v . '</a>';
break;
case 3:
$crumbs = $crumbs . ' <span>:: ' . $v . '</span>';
break;
}
}
}
return $crumbs;
}
开发者ID:noisywiz,项目名称:tractor,代码行数:29,代码来源:view.php
示例6: display_page_content
function display_page_content()
{
$section_name = requestIdParam();
$section = Sections::FindByName($section_name);
$item_name = getRequestVarAtIndex(3);
$item = Items::FindByName($item_name);
$gallery = $item->getGallery();
?>
<h1><?php
echo $item->display_name;
?>
</h1>
<?php
$next_item = $item->findNext($section);
$prev_item = $item->findPrev($section);
if ($prev_item) {
echo "\t\t\t\t<a href=\"" . get_link("portfolio/item/{$section_name}/" . $prev_item->name) . "\">previous</a>\n";
}
if ($next_item) {
echo "\t\t\t\t<a href=\"" . get_link("portfolio/item/{$section_name}/" . $next_item->name) . "\">next</a>\n";
}
echo $item->content;
foreach ($gallery->get_photos() as $photo) {
echo "<img src=\"/" . $photo->getPublicUrl() . "\" /><br />";
}
}
开发者ID:highchair,项目名称:hcd-trunk,代码行数:27,代码来源:item.php
示例7: formulaire
function formulaire($r = array())
{
global $array_Fragments_type;
set_values_db('Caranille_Fragments', 'Fragment_Type', $array_Fragments_type);
?>
<form method="POST" action="<?php
echo get_link("Fragments", "Admin");
?>
">
<?php
echo forumulaire_db('Caranille_Fragments', $r);
?>
<br/>
<input type="submit" name="Back" value="Annuler" />
<input type="submit" name="End_<?php
echo request_confirm('Add') ? 'Add' : 'Edit';
?>
" value="Terminer"/>
<?php
if (request_confirm('Second_Edit')) {
?>
<input type="submit" name="Second_Delete" value="Supprimer"><?php
}
?>
</form>
<?php
}
开发者ID:galadie,项目名称:Caranille-RPG,代码行数:28,代码来源:Fragments.php
示例8: get_formulaire_Building
function get_formulaire_Building($Building = array())
{
?>
<form method="POST" action="<?php
echo get_link('Buildings', 'Admin');
?>
">
<h2><?php
echo request_confirm('Add') ? 'Ajout' : 'Modification';
?>
du Batiment</h2>
<?php
echo forumulaire_db('Caranille_Building', $Building);
?>
<br/>
<input type="submit" name="Back" value="Annuler" />
<input type="submit" name="End_<?php
echo request_confirm('Add') ? 'Add' : 'Edit';
?>
" value="Terminer"/>
<?php
if (request_confirm('Second_Edit')) {
?>
<input type="submit" name="Second_Delete" value="Supprimer"><?php
}
?>
</form>
<?php
}
开发者ID:galadie,项目名称:Caranille-RPG,代码行数:29,代码来源:Buildings.php
示例9: cpu
function cpu($id)
{
$this->id = $id;
// Get the disk informations
$q0 = get_link()->prepare('SELECT
c.id AS ID,
c.logical_id AS LOGICALID,
c.max_clock_speed AS MAXCLOCKSPEED,
c.name AS NAME,
c.created_date AS CREATED_DATE,
c.created_id AS CREATED_ID,
c.edited_date AS EDITED_DATE,
c.edited_id AS EDITED_ID,
c.deleted_date AS DELETED_DATE,
c.deleted_id AS DELETED_ID
FROM ' . get_ini('BDD_PREFIX') . 'cmdb_dev_os_cpu c
WHERE id=:id AND deleted_date=0');
$q0->execute(array('id' => $id));
$r0 = $q0->fetch(PDO::FETCH_OBJ);
if (isset($r0->ID)) {
$this->logicalId = $r0->LOGICALID;
$this->maxClockSpeed = $r0->MAXCLOCKSPEED;
$this->name = $r0->NAME;
$this->createdDate = $r0->CREATED_DATE;
$this->createdID = $r0->CREATED_ID;
$this->editedDate = $r0->EDITED_DATE;
$this->editedId = $r0->EDITED_ID;
$this->deletedDate = $r0->DELETED_DATE;
$this->deltedId = $r0->DELETED_ID;
} else {
// TODO add log management
echo 'The cpu does not exist.';
exit(100);
}
}
开发者ID:Julien-SIMON,项目名称:GobelinsLab,代码行数:35,代码来源:_cpu.class.php
示例10: get_formulaire_Caracteristique
function get_formulaire_Caracteristique($Caracteristique = array())
{
extract(stripslashes_r($Caracteristique));
?>
<form method="POST" action="<?php
echo get_link("Caracteristiques", "Admin");
?>
">
<h2><?php
echo request_confirm('Add') ? 'Ajout' : 'Modification';
?>
du Caracteristique</h2>
<?php
echo forumulaire_db('Caranille_Caracteristiques', $Caracteristique);
?>
<br/>
<input type="submit" name="Back" value="Annuler" />
<input type="submit" name="End_<?php
echo request_confirm('Add') ? 'Add' : 'Edit';
?>
" value="Terminer"/>
<?php
if (request_confirm('Second_Edit')) {
?>
<input type="submit" name="Second_Delete" value="Supprimer"><?php
}
?>
</form>
<?php
}
开发者ID:galadie,项目名称:Caranille-RPG,代码行数:30,代码来源:Caracteristiques.php
示例11: formulaire
function formulaire($Page = array())
{
?>
<form method="POST" action="<?php
echo get_link("Pages", "Admin");
?>
">
<h2><?php
echo request_confirm('Add') ? 'Ajout' : 'Modification';
?>
de Page</h2>
<?php
echo forumulaire_db('Caranille_Pages', $Page);
?>
<br/>
<input type="submit" name="Back" value="Annuler" />
<input type="submit" name="End_<?php
echo request_confirm('Add') ? 'Add' : 'Edit';
?>
" value="Terminer"/>
<?php
if (request_confirm('Second_Edit')) {
?>
<input type="submit" name="Second_Delete" value="Supprimer"><?php
}
?>
</form>
<?php
}
开发者ID:galadie,项目名称:Caranille-RPG,代码行数:29,代码来源:Pages.php
示例12: content_valid_mail
function content_valid_mail($account)
{
global $_url, $MMORPG_Name, $MMORPG_Description;
//-----------------------------------------------
//DECLARE LES VARIABLES
//-----------------------------------------------
$url_valid = get_link('End', 'Register', array('Valid' => 'Activer', 'Account_Key' => $account['Account_Key'], 'Account_Email' => $account['Account_Email']));
$message_texte = 'Bonjour,' . "\n\n" . 'utiliser ce lien dans votre navigateur pour valider votre inscription' . "\n\n" . $url_valid;
$message_html = '<html>
<head>
<title>' . $MMORPG_Name . ' - valider votre inscription</title>
</head>
<body>
' . $MMORPG_Description . '<hr/>
Vous venez d\'effectuer l\'inscription sur le site <a href="' . $_url . '">' . $MMORPG_Name . '</a> .<br/><br/>
Pour valider votre inscription, cliquez sur ce bouton :
<form method="post" action="' . get_link('End', 'Register') . '">
<input type="hidden" name="Account_Key" value="' . $account['Account_Key'] . '"/>
<input type="hidden" name="Account_Email" value="' . $account['Account_Email'] . '"/>
<input type="submit" name="Valid" value="Activer"/>
</form>
Ou sur <a href="' . $url_valid . '">ce lien</a>
</body>
</html>';
debug_log($message_html, false);
return array($message_texte, $message_html);
}
开发者ID:galadie,项目名称:Caranille-RPG,代码行数:28,代码来源:Register.php
示例13: environment
function environment($id)
{
$this->id = $id;
// Get the disk informations
$q0 = get_link()->prepare('SELECT
e.id AS ID,
e.id_parent AS ID_PARENT,
e.name AS NAME,
e.created_date AS CREATED_DATE,
e.created_id AS CREATED_ID,
e.edited_date AS EDITED_DATE,
e.edited_id AS EDITED_ID,
e.deleted_date AS DELETED_DATE,
e.deleted_id AS DELETED_ID
FROM ' . get_ini('BDD_PREFIX') . 'cmdb_environments e
WHERE id=:id AND deleted_date=0');
$q0->execute(array('id' => $id));
$r0 = $q0->fetch(PDO::FETCH_OBJ);
if (isset($r0->ID)) {
$this->parentId = $r0->ID_PARENT;
$this->name = $r0->NAME;
$this->createdDate = $r0->CREATED_DATE;
$this->createdID = $r0->CREATED_ID;
$this->editedDate = $r0->EDITED_DATE;
$this->editedId = $r0->EDITED_ID;
$this->deletedDate = $r0->DELETED_DATE;
$this->deltedId = $r0->DELETED_ID;
} else {
// TODO add log management
echo 'The environment don\'t exist.';
exit(100);
}
}
开发者ID:Julien-SIMON,项目名称:GobelinsLab,代码行数:33,代码来源:_environment.class.php
示例14: formulaire
function formulaire($r = array())
{
set_values_db('Caranille_Items', 'Item_Type', array('Parchment'));
?>
<form method="POST" action="<?php
echo get_link("Parchments", "Admin");
?>
">
<?php
echo forumulaire_db('Caranille_Items', $r);
?>
<br/>
<?php
echo line_db('Caranille_Craftings', 'Crafting_Fragment_ID');
?>
<input type="submit" name="Back" value="Annuler" />
<input type="submit" name="End_<?php
echo request_confirm('Add') ? 'Add' : 'Edit';
?>
" value="Terminer"/>
<?php
if (request_confirm('Second_Edit')) {
?>
<input type="submit" name="Second_Delete" value="Supprimer"><?php
}
?>
</form>
<?php
if (isset($r["Item_ID"])) {
$loots = list_db('foreign_list', array('table' => 'Caranille_Craftings', 'ID' => 'Crafting_Item_ID', 'value' => $r["Item_ID"]));
list_html($loots, "Caranille_Craftings", "Crafts", array('Crafting_Fragment_ID'), true, false);
}
}
开发者ID:galadie,项目名称:Caranille-RPG,代码行数:34,代码来源:Parchments.php
示例15: index
public function index()
{
$this->load->model("user_manager_model");
$this->load->model("module_manager_model");
$user_info =& $this->user_manager_model->get_user_info();
$this->data['modules'] = array();
$modules = $this->module_manager_model->get_user_modules_names($user_info->get_id());
foreach ($modules as $module) {
$name = $module['name'];
$link = $module['link'];
$id = $module['id'];
$model_name = $module['model'];
if (!$model_name) {
continue;
}
$this->load->model($model_name . "_model");
$model = $this->{$model_name . "_model"};
if (!method_exists($model, "get_dashbord_info")) {
continue;
}
$text = $model->{"get_dashbord_info"}();
$this->data['modules'][] = array("id" => $id, "name" => $name, "link" => $link, "text" => $text);
}
$this->lang->load('ae_dashboard', $this->selected_lang);
$this->data['lang_pages'] = get_lang_pages(get_link("admin_dashboard", TRUE));
$this->data['header_title'] = $this->lang->line("dashboard");
$this->send_admin_output("dashboard");
return;
}
开发者ID:NaszvadiG,项目名称:BurgeCMF,代码行数:29,代码来源:AE_Dashboard.php
示例16: display_page_content
function display_page_content()
{
?>
<h1>Choose Blog to Edit</h1>
<div class="listhead"><label>Click Name to Edit</label>Associated User</div>
<ul id="list_items">
<?php
$blogs = Blogs::FindAll();
foreach ($blogs as $blog) {
$user = Users::FindById($blog->user_id);
?>
<li>
<a href="<?php
echo get_link("/admin/edit_blog/" . $blog->user_id);
?>
"><?php
echo $blog->name;
?>
</a>
<?php
echo $user->email;
?>
</li>
<?php
}
?>
</ul>
<?php
}
开发者ID:highchair,项目名称:hcd-trunk,代码行数:32,代码来源:list_blogs.php
示例17: display_page_content
function display_page_content()
{
$lists = NLLists::FindAll();
?>
<div id="edit-header" class="blaster">
<div class="nav-left column">
<h1>Edit Mailing Lists</h1>
</div>
<div class="nav-right column">
<a href="<?php
echo get_link("admin/add_list");
?>
" class="hcd_button">Add a New Mailing List</a>
</div>
<div class="clearleft"></div>
</div>
<p>Click on the list name to edit it.</p>
<ul id="list_items" class="managelist">
<?php
if (count($lists) > 0) {
foreach ($lists as $list) {
echo "\t\t<li><a class=\"item-link\" href=\"" . get_link("/admin/edit_list/{$list->id}") . "\">{$list->display_name}</a></li>\n";
}
} else {
echo "<h3 class=\"empty-list\">There are no lists to edit. <a class=\"short\" href=\"" . get_link("admin/add_list") . "\">Add one if you like</a>.</h3>";
}
?>
</ul>
<?php
}
开发者ID:highchair,项目名称:hcd-trunk,代码行数:33,代码来源:list_lists.php
示例18: index
public function index()
{
$this->lang->load('ae_change_pass', $this->selected_lang);
if ($this->input->post()) {
$this->lang->load('error', $this->selected_lang);
if ($this->input->post("prev_pass") && $this->input->post("new_pass") && $this->input->post("repeat_pass")) {
if ($this->input->post("new_pass") === $this->input->post("repeat_pass")) {
$prev_pass = $this->input->post("prev_pass");
$new_pass = $this->input->post("new_pass");
$this->load->model("user_manager_model");
if ($this->user_manager_model->change_logged_user_pass($prev_pass, $new_pass)) {
$message = $this->lang->line("success_password_change");
} else {
$message = $this->lang->line("match_prev_password");
}
} else {
$message = $this->lang->line("match_repeat_password");
}
} else {
$message = $this->lang->line("fill_all_fields");
}
}
if (isset($message)) {
$this->data['message'] = $message;
}
$this->data['lang_pages'] = get_lang_pages(get_link("admin_change_pass", TRUE));
$this->data['header_title'] = $this->lang->line("change_pass");
$this->send_admin_output("change_pass");
return;
}
开发者ID:NaszvadiG,项目名称:BurgeCMF,代码行数:30,代码来源:AE_Change_Pass.php
示例19: install
public function install()
{
$user_pass = "badmin";
echo "<h1>Installing Burge CMF</h1>";
$this->log_manager_model->info("CMF_INSTALL");
$this->load->model("module_manager_model");
$this->module_manager_model->install_module("module_manager");
$this->module_manager_model->install_module("user_manager");
$this->load->model("user_manager_model");
$props = array("user_name" => $user_pass, "user_email" => $user_pass, "user_pass" => $user_pass, "user_code" => 10);
$this->user_manager_model->add_if_not_exist($props);
$user = new User($user_pass);
echo "Username: {$user_pass}<br>Pass: {$user_pass}<br>";
echo "<h2>Login <a href='" . get_link("admin_login") . "'>here</a>.</h2>";
$this->module_manager_model->install_module("access_manager");
$this->module_manager_model->install_module("hit_counter");
$this->module_manager_model->install_module("post_manager");
$this->module_manager_model->install_module("log_manager");
$this->module_manager_model->install_module("constant_manager");
$default_lang = array_keys(LANGUAGES())[0];
$modules_info = $this->module_manager_model->get_all_modules_info($default_lang);
$modules = array();
foreach ($modules_info as $md) {
$modules[] = $md['module_id'];
}
$this->load->model("access_manager_model");
$this->access_manager_model->set_allowed_modules_for_user($user->get_id(), $modules);
return;
}
开发者ID:NaszvadiG,项目名称:BurgeCMF,代码行数:29,代码来源:AE_Setup.php
示例20: get_formulaire_Level
function get_formulaire_Level($level = array())
{
?>
<form method="POST" action="<?php
echo get_link("Levels", "Admin");
?>
">
<?php
echo forumulaire_db('Caranille_Levels', $level);
?>
<br/>
<input type="submit" name="Back" value="Annuler" />
<input type="submit" name="End_<?php
echo request_confirm('Add') ? 'Add' : 'Edit';
?>
" value="Terminer"/>
<?php
if (request_confirm('Second_Edit')) {
?>
<input type="submit" name="Second_Delete" value="Supprimer"><?php
}
?>
</form>
<?php
}
开发者ID:galadie,项目名称:Caranille-RPG,代码行数:26,代码来源:Levels.php
注:本文中的get_link函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论