本文整理汇总了PHP中get_link函数的典型用法代码示例。如果您正苦于以下问题:PHP get_link函数的具体用法?PHP get_link怎么用?PHP get_link使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_link函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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
}
示例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
}
示例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;
}
示例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
}
示例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;
}
示例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 />";
}
}
示例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
}
示例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
}
示例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);
}
}
示例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
}
示例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
}
示例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);
}
示例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);
}
}
示例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);
}
}
示例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;
}