当前位置: 首页>>代码示例>>PHP>>正文


PHP create_link函数代码示例

本文整理汇总了PHP中create_link函数的典型用法代码示例。如果您正苦于以下问题:PHP create_link函数的具体用法?PHP create_link怎么用?PHP create_link使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了create_link函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: printAdminSubnets


//.........这里部分代码省略.........
        if (empty($vlan) || $vlan == "0") {
            $vlan = "";
        }
        # no VLAN
        # description
        if (strlen($option['value']['description']) == 0) {
            $description = "/";
        } else {
            $description = $option['value']['description'];
        }
        # description
        # requests
        if ($option['value']['allowRequests'] == 1) {
            $requests = "<i class='fa fa-gray fa-check'></i>";
        } else {
            $requests = "";
        }
        # request disabled
        # hosts check
        if ($option['value']['pingSubnet'] == 1) {
            $pCheck = "<i class='fa fa-gray fa-check'></i>";
        } else {
            $pCheck = "";
        }
        # ping check disabled
        #vrf
        if ($vrf == "1") {
            # get VRF details
            if ($option['value']['vrfId'] != "0" && $option['value']['vrfId'] != "NULL") {
                $vrfTmp = getVRFDetailsById($option['value']['vrfId']);
                $vrfText = $vrfTmp['name'];
            } else {
                $vrfText = "";
            }
        }
        # print table line
        if (strlen($option['value']['subnet']) > 0) {
            $html[] = "<tr>";
            # folder
            if ($option['value']['isFolder'] == 1) {
                $html[] = "\t<td class='level{$count}'><span class='structure' style='padding-left:{$padding}; margin-left:{$margin};'></span><i class='fa fa-sfolder fa-folder-open'></i> <a href='" . create_link("folder", $option['value']['sectionId'], $option['value']['id']) . "'>{$description}</a></td>";
                $html[] = "\t<td class='level{$count}'><span class='structure' style='padding-left:{$padding}; margin-left:{$margin};'></span><i class='fa fa-sfolder fa-folder-open'></i> {$description}</td>";
            } else {
                if ($count == 1) {
                    $html[] = "\t<td class='level{$count}'><span class='structure' style='padding-left:{$padding}; margin-left:{$margin};'></span><i class='fa fa-folder-open-o'></i><a href='" . create_link("subnets", $option['value']['sectionId'], $option['value']['id']) . "'>  " . transform2long($option['value']['subnet']) . "/" . $option['value']['mask'] . "</a></td>";
                    $html[] = "\t<td class='level{$count}'><span class='structure' style='padding-left:{$padding}; margin-left:{$margin};'></span><i class='fa fa-folder-open-o'></i> {$description}</td>";
                } else {
                    # last?
                    if (!empty($children[$option['value']['id']])) {
                        $html[] = "\t<td class='level{$count}'><span class='structure' style='padding-left:{$padding}; margin-left:{$margin};'></span><i class='fa fa-folder-open-o'></i> <a href='" . create_link("subnets", $option['value']['sectionId'], $option['value']['id']) . "'>  " . transform2long($option['value']['subnet']) . "/" . $option['value']['mask'] . "</a></td>";
                        $html[] = "\t<td class='level{$count}'><span class='structure' style='padding-left:{$padding}; margin-left:{$margin};'></span><i class='fa fa-folder-open-o'></i> {$description}</td>";
                    } else {
                        $html[] = "\t<td class='level{$count}'><span class='structure' style='padding-left:{$padding}; margin-left:{$margin};'></span><i class='fa fa-angle-right'></i> <a href='" . create_link("subnets", $option['value']['sectionId'], $option['value']['id']) . "'>  " . transform2long($option['value']['subnet']) . "/" . $option['value']['mask'] . "</a></td>";
                        $html[] = "\t<td class='level{$count}'><span class='structure' style='padding-left:{$padding}; margin-left:{$margin};'></span><i class='fa fa-angle-right'></i> {$description}</td>";
                    }
                }
            }
            $html[] = "\t<td class='hidden-xs hidden-sm'>{$vlan}</td>";
            #vrf
            if ($vrf == "1") {
                $html[] = "\t<td class='hidden-xs hidden-sm'>{$vrfText}</td>";
            }
            $html[] = "\t<td class='hidden-xs hidden-sm hidden-md'>{$requests}</td>";
            $html[] = "\t<td class='hidden-xs hidden-sm hidden-md'>{$pCheck}</td>";
            # custom
            if (sizeof($custom) > 0) {
                foreach ($custom as $field) {
                    if (!in_array($field['name'], $ffields)) {
                        $html[] = "\t<td class='hidden-xs hidden-sm'>" . $option['value'][$field['name']] . "</td>";
                    }
                }
            }
            # actions
            if ($actions) {
                $html[] = "\t<td class='actions' style='padding:0px;'>";
                $html[] = "\t<div class='btn-group btn-group-xs'>";
                if ($option['value']['isFolder'] == 1) {
                    $html[] = "\t\t<button class='btn btn-sm btn-default add_folder'     data-action='edit'   data-subnetid='" . $option['value']['id'] . "'  data-sectionid='" . $option['value']['sectionId'] . "'><i class='fa fa-gray fa-pencil'></i></button>";
                    $html[] = "\t\t<button class='btn btn-sm btn-default showSubnetPerm' data-action='show'   data-subnetid='" . $option['value']['id'] . "'  data-sectionid='" . $option['value']['sectionId'] . "'><i class='fa fa-gray fa-tasks'></i></button>";
                    $html[] = "\t\t<button class='btn btn-sm btn-default add_folder'     data-action='delete' data-subnetid='" . $option['value']['id'] . "'  data-sectionid='" . $option['value']['sectionId'] . "'><i class='fa fa-gray fa-times'></i></button>";
                } else {
                    $html[] = "\t\t<button class='btn btn-sm btn-default editSubnet'     data-action='edit'   data-subnetid='" . $option['value']['id'] . "'  data-sectionid='" . $option['value']['sectionId'] . "'><i class='fa fa-gray fa-pencil'></i></button>";
                    $html[] = "\t\t<button class='btn btn-sm btn-default showSubnetPerm' data-action='show'   data-subnetid='" . $option['value']['id'] . "'  data-sectionid='" . $option['value']['sectionId'] . "'><i class='fa fa-gray fa-tasks'></i></button>";
                    $html[] = "\t\t<button class='btn btn-sm btn-default editSubnet'     data-action='delete' data-subnetid='" . $option['value']['id'] . "'  data-sectionid='" . $option['value']['sectionId'] . "'><i class='fa fa-gray fa-times'></i></button>";
                }
                $html[] = "\t</div>";
                $html[] = "\t</td>";
            }
            $html[] = "</tr>";
        }
        if ($option === false) {
            $parent = array_pop($parent_stack);
        } elseif (!empty($children[$option['value']['id']])) {
            array_push($parent_stack, $option['value']['masterSubnetId']);
            $parent = $option['value']['id'];
        } else {
        }
    }
    return implode("\n", $html);
}
开发者ID:kinhvan017,项目名称:phpipam,代码行数:101,代码来源:functions-admin.php

示例2: changelog_send_mail

 /**
  * Send mail on new changelog
  *
  * @access public
  * @param string $changelog
  * @return boolean
  */
 public function changelog_send_mail($changelog)
 {
     # initialize tools class
     $this->Tools = new Tools($this->Database);
     # set object
     $obj_details = $this->object_action == "add" ? $this->object_new : $this->object_old;
     # change ip_addr
     $this->object_type = str_replace("ip_addr", "address", $this->object_type);
     $this->object_type = str_replace("ip_range", "address range", $this->object_type);
     # folder
     if ($this->object_new['isFolder'] == "1" || $this->object_old['isFolder'] == "1") {
         $this->object_type = "folder";
     }
     # set subject
     $subject = string;
     if ($this->object_action == "add") {
         $subject = ucwords($this->object_type) . " create notification";
     } elseif ($this->object_action == "edit") {
         $subject = ucwords($this->object_type) . " change notification";
     } elseif ($this->object_action == "delete") {
         $subject = ucwords($this->object_type) . " delete notification";
     }
     // if address we need subnet details !
     $address_subnet = array();
     if ($this->object_type == "address") {
         $address_subnet = (array) $this->Tools->fetch_object("subnets", "id", $obj_details['subnetId']);
     }
     # set object details
     $details = string;
     if ($this->object_type == "section") {
         $details = "<a style='font-family:Helvetica, Verdana, Arial, sans-serif; font-size:12px;color:#a0ce4e;' href='" . $this->createURL() . create_link("subnets", $obj_details['id']) . "'>" . $obj_details['name'] . "(" . $obj_details['description'] . ") - id " . $obj_details['id'] . "</a>";
     } elseif ($this->object_type == "subnet") {
         $details = "<a style='font-family:Helvetica, Verdana, Arial, sans-serif; font-size:12px;color:#a0ce4e;' href='" . $this->createURL() . create_link("subnets", $obj_details['sectionId'], $obj_details['id']) . "'>" . $this->Subnets->transform_address($obj_details['subnet'], "dotted") . "/" . $obj_details['mask'] . " (" . $obj_details['description'] . ") - id " . $obj_details['id'] . "</a>";
     } elseif ($this->object_type == "folder") {
         $details = "<a style='font-family:Helvetica, Verdana, Arial, sans-serif; font-size:12px;color:#a0ce4e;' href='" . $this->createURL() . create_link("folder", $obj_details['sectionId'], $obj_details['id']) . "'>" . $obj_details['description'] . " - id " . $obj_details['id'] . "</a>";
     } elseif ($this->object_type == "address") {
         $details = "<a style='font-family:Helvetica, Verdana, Arial, sans-serif; font-size:12px;color:#a0ce4e;' href='" . $this->createURL() . create_link("subnets", $address_subnet['sectionId'], $obj_details['subnetId'], "address-details", $obj_details['id']) . "'>" . $this->Subnets->transform_address($obj_details['ip_addr'], "dotted") . " ( hostname " . $obj_details['dns_name'] . ", subnet: " . $this->Subnets->transform_address($address_subnet['subnet'], "dotted") . "/" . $address_subnet['mask'] . ")- id " . $obj_details['id'] . "</a>";
     } elseif ($this->object_type == "address range") {
         $details = $changelog;
     }
     # set content
     $content = array();
     $content[] = "<div style='padding:10px;'>";
     $content[] = "<table>";
     $content[] = "<tr><td colspan='2'>{$this->mail_font_style}<strong>The following change was made on ipam:</strong></font></td></tr>";
     $content[] = "<tr><td colspan='2'>&nbsp;</td></tr>";
     $content[] = "<tr><td>{$this->mail_font_style} Object type:</font><td>{$this->mail_font_style}" . ucwords($this->object_type) . "</font></td></tr>";
     $content[] = "<tr><td>{$this->mail_font_style} Object details:</font><td>{$this->mail_font_style_href}" . $details . "</font></td></tr>";
     $content[] = "<tr><td>{$this->mail_font_style} User:</font><td>{$this->mail_font_style}" . $this->user->real_name . " (" . $this->user->username . ")" . "</font></td></tr>";
     $content[] = "<tr><td>{$this->mail_font_style} Action:</font><td>{$this->mail_font_style}" . $this->object_action . "</font></td></tr>";
     $content[] = "<tr><td>{$this->mail_font_style} Date:</font><td>{$this->mail_font_style}" . date("Y-m-d H:i:s") . "</font></td></tr>";
     $content[] = "<tr><td colspan='2'><hr style='height:0px;border-top:0px;border-bottom:1px solid #ddd;'></td></tr>";
     $content[] = "<tr><td style='vertical-align:top;'>{$this->mail_font_style} Changes:</td>";
     $content[] = "<td>";
     // add changelog
     $changelog = str_replace("\r\n", "<br>", $changelog);
     $changelog = array_filter(explode("<br>", $changelog));
     $content[] = "<table>";
     foreach ($changelog as $c) {
         // field
         $field = explode(":", $c);
         $value = explode("=>", $field[1]);
         // format field
         $field = trim(str_replace(array("[", "]"), "", $field[0]));
         if (is_array($this->changelog_keys[$this->object_type])) {
             if (array_key_exists($field, $this->changelog_keys[$this->object_type])) {
                 $field = $this->changelog_keys[$this->object_type][$field];
             }
         } else {
             $field = $field;
         }
         $content[] = "<tr>";
         $content[] = "  <td>{$this->mail_font_style}<strong> {$field}</strong>: </font></td>";
         $content[] = "  <td>{$this->mail_font_style} " . trim($value[0]) . " </font></td>";
         if ($this->object_action == "edit") {
             $content[] = "  <td>{$this->mail_font_style} => </font></td>";
             $content[] = "  <td>{$this->mail_font_style} " . trim($value[1]) . " </font></td>";
         }
         $content[] = "</tr>";
     }
     $content[] = "</table>";
     $content[] = "</font></td></tr>";
     $content[] = "</table>";
     $content[] = "</div>";
     # set plain content
     $content_plain = array();
     $content_plain[] = "Object type: " . $this->object_type;
     $content_plain[] = "Object details: " . $details;
     $content_plain[] = "User: " . $this->user->real_name . " (" . $this->user->username . ")";
     $content_plain[] = "Action: " . $this->object_action;
     $content_plain[] = "Date: " . date("Y-m-d H:i:s");
     $content_plain[] = "\r\n--------------------\r\n";
     $content_plain[] = str_replace("<br>", "\r\n", $changelog);
//.........这里部分代码省略.........
开发者ID:routenull0,项目名称:phpipam,代码行数:101,代码来源:class.Log.php

示例3: update_user_pass

 /**
  * Updates users password
  *
  * @access public
  * @param mixed $password
  * @return void
  */
 public function update_user_pass($password)
 {
     try {
         $this->Database->updateObject("users", array("password" => $this->crypt_user_pass($password), "passChange" => "No", "id" => $this->user->id), "id");
     } catch (Exception $e) {
         $this->Result->show("danger", $e->getMessage(), true);
     }
     $this->Result->show("success", "Hi, " . $this->user->real_name . ", " . _("your password was updated") . ". <a class='btn btn-sm btn-default' href='" . create_link("dashboard") . "'>Dashboard</a>", false);
 }
开发者ID:julsoj,项目名称:phpipam,代码行数:16,代码来源:class.User.php

示例4: dirname

<?php

/*
 * Script to print some stats on home page....
 *********************************************/
/* required functions */
if (!function_exists('getSubnetStatsDashboard')) {
    require_once dirname(__FILE__) . '/../../../functions/functions.php';
}
/* if direct request that redirect to tools page */
if ($_SERVER['HTTP_X_REQUESTED_WITH'] != "XMLHttpRequest") {
    header("Location: " . BASE . "" . create_link("administration", "manageRequests"));
}
/* get all */
$allActiveRequests = getAllActiveIPrequests();
?>



<?php 
if (sizeof($allActiveRequests) == 0) {
    print "<blockquote style='margin-top:20px;margin-left:20px;'>";
    print "<small>" . _("No IP address requests available") . "!</small><br>";
    print "</blockquote>";
} else {
    ?>

<table id="requestedIPaddresses" class="table table-condensed table-hover table-top">

<!-- headers -->
<tr>
开发者ID:kinhvan017,项目名称:phpipam,代码行数:31,代码来源:requests.php

示例5: _

 print "\t<th class='small hidden-xs hidden-sm'>% " . _('Free') . "</th>";
 print "\t<th class='small hidden-xs hidden-sm'>" . _('Requests') . "</th>";
 print " <th class='actions'></th>";
 print "</tr>";
 # print subnets
 foreach ($slaves as $subnet) {
     # cast
     $subnet = (array) $subnet;
     # check permission
     $permission = $Subnets->check_permission($User->user, $subnet['id']);
     # allowed
     $m = 0;
     if ($permission > 0) {
         print "<tr>";
         print "\t<td class='small description'><a href='" . create_link("subnets", $_GET['section'], $subnet['id']) . "'>{$subnet['description']}</a></td>";
         print "\t<td><a href='" . create_link("subnets", $_GET['section'], $subnet['id']) . "'>{$subnet['ip']}/{$subnet['mask']}</a></td>";
         # host check
         if ($subnet['pingSubnet'] == 1) {
             print '<td class="allowRequests small hidden-xs hidden-sm">' . _('enabled') . '</td>';
         } else {
             print '<td class="allowRequests small hidden-xs hidden-sm"></td>';
         }
         # increase IP count
         $ipCount = 0;
         if (!$Subnets->has_slaves($subnet['id'])) {
             $ipCount = $Addresses->count_subnet_addresses($subnet['id']);
         } else {
             # fix for subnet and broadcast free space calculation
             $ipCount = 0;
             //initial count
             $Subnets->reset_subnet_slaves_recursive();
开发者ID:martinsv,项目名称:phpipam,代码行数:31,代码来源:vlan-subnets.php

示例6: elseif

        } elseif ($_GET['page'] == "administration") {
            # Admin object
            $Admin = new Admin($Database);
            if (!isset($_GET['section'])) {
                include "app/admin/index.php";
            } elseif (@$_GET['subnetId'] == "section-changelog") {
                include "app/sections/section-changelog.php";
            } else {
                if (!file_exists("app/admin/{$_GET['section']}/index.php")) {
                    header("Location: " . create_link("error", "404"));
                } else {
                    include "app/admin/{$_GET['section']}/index.php";
                }
            }
        } else {
            header("Location: " . create_link("error", "404"));
        }
        print "</div>";
        print "</td>";
        print "</tr>";
        print "</table>";
    }
    ?>

</div>
</div>

<!-- Base for IE -->
<div class="iebase hidden"><?php 
    print BASE;
    ?>
开发者ID:rtd,项目名称:phpipam,代码行数:31,代码来源:index.php

示例7: unset

        //explode
        unset($sec);
        $sections_tmp = explode(";", $domain->permissions);
        foreach ($sections_tmp as $t) {
            //fetch section
            $tmp_section = $Sections->fetch_section(null, $t);
            $sec[] = $tmp_section->name;
        }
        //implode
        $sections = implode("<br>", $sec);
    }
    // print
    print "<tr class='text-top'>";
    print "\t<td><a class='btn btn-sm btn-default' href='" . create_link("tools", "vlan", $domain->id) . "'>{$domain->name}</a></td>";
    print "\t<td>{$domain->description}</td>";
    print "\t<td><span class='text-muted'>{$sections}</span></td>";
    print "\t<td><a href='" . create_link("tools", "vlan", $domain->id) . "'>Show VLANs</a></td>";
    //manage
    if ($User->isadmin === true) {
        print "\t<td class='actions'>";
        print "\t<div class='btn-group'>";
        print "\t\t<button class='btn btn-xs btn-default editVLANdomain' data-action='edit'   data-domainid='{$domain->id}'><i class='fa fa-pencil'></i></button>";
        print "\t\t<button class='btn btn-xs btn-default editVLANdomain' data-action='delete' data-domainid='{$domain->id}'><i class='fa fa-times'></i></button>";
        print "\t</div>";
        print "\t</td>";
    }
    print "\t</td>";
    print "</tr>";
}
?>
</table>
开发者ID:netbuild,项目名称:phpipam,代码行数:31,代码来源:domains.php

示例8: create_link

                 print "</td>";
             }
         }
     }
 } else {
     print "<tr class='{$class}'>";
     print "<td></td>";
     print "<td></td>";
     print "<td></td>";
 }
 //subnet?
 if ($v->subnetId != null) {
     //section
     $section = $Sections->fetch_section(null, $v->sectionId);
     print " <td><a href='" . create_link("subnets", $section->id, $v->subnetId) . "'>" . $Subnets->transform_to_dotted($v->subnet) . "/{$v->mask}</a></td>";
     print " <td><a href='" . create_link("subnets", $section->id) . "'>{$section->name}</a></td>";
     // actions
     if ($k == 0 && $_GET['page'] == "administration") {
         print "\t<td class='actions'>";
         print "\t<div class='btn-group'>";
         print "\t\t<button class='btn btn-xs btn-default editVLAN' data-action='edit'   data-vlanid='{$v->vlanId}'><i class='fa fa-pencil'></i></button>";
         print "\t\t<button class='btn btn-xs btn-default moveVLAN' \t\t\t\t\t data-vlanid='{$v->vlanId}'><i class='fa fa-external-link'></i></button>";
         print "\t\t<button class='btn btn-xs btn-default editVLAN' data-action='delete' data-vlanid='{$v->vlanId}'><i class='fa fa-times'></i></button>";
         print "\t</div>";
         print "\t</td>";
     } else {
         print "<td></td>";
     }
     print "</tr>";
 } else {
     print "\t<td>/</td>";
开发者ID:dajo,项目名称:phpipam,代码行数:31,代码来源:domain-vlans.php

示例9: header

    header('Location: ' . $ssoBuiltUrl);
    exit;
} else {
    //process the authentication response
    if (isset($_SESSION) && isset($_SESSION['AuthNRequestID'])) {
        $requestID = $_SESSION['AuthNRequestID'];
    } else {
        $requestID = null;
    }
    // process errors and check for errors
    $auth->processResponse($requestID);
    $errors = $auth->getErrors();
    // check if errors are present
    if (!empty($errors)) {
        $Result->show("danger", implode('<br>', $errors), true);
        exit;
    }
    // is user authenticated
    if (!$auth->isAuthenticated()) {
        $Result->show("danger", "Not authenticated", true);
        exit;
    }
    // try to authenticate in phpipam
    $User->authenticate($auth->getNameId(), '', true);
    // Redirect user where he came from, if unknown go to dashboard.
    if (isset($_COOKIE['phpipamredirect'])) {
        header("Location: " . $_COOKIE['phpipamredirect']);
    } else {
        header("Location: " . create_link("dashboard"));
    }
}
开发者ID:routenull0,项目名称:phpipam,代码行数:31,代码来源:index.php

示例10: sizeof

    # migrate settings
    $User->migrate_domain_settings();
    $User->migrate_ldap_settings();
    # check for possible errors
    if (sizeof($errors = $Tools->verify_database()) > 0) {
        $esize = sizeof($errors['tableError']) + sizeof($errors['fieldError']);
        print '<div class="alert alert-danger">' . "\n";
        # print table errors
        if (isset($errors['tableError'])) {
            print '<strong>' . _('Missing table') . 's:</strong>' . "\n";
            print '<ul class="fix-table">' . "\n";
            foreach ($errors['tableError'] as $table) {
                print '<li>' . $table . '</li>' . "\n";
            }
            print '</ul>' . "\n";
        }
        # print field errors
        if (isset($errors['fieldError'])) {
            print '<strong>' . _('Missing fields') . ':</strong>' . "\n";
            print '<ul class="fix-field">' . "\n";
            foreach ($errors['fieldError'] as $table => $field) {
                print '<li>Table `' . $table . '`: missing field `' . $field . '`;</li>' . "\n";
            }
            print '</ul>' . "\n";
        }
        print "</div>";
    }
} else {
    # print failure
    $Result->show("danger", _("Failed to upgrade database! <a class='btn btn-sm btn-default' href='" . create_link('administration', "verify-database") . "'>Go to administration and fix</a>"), false);
}
开发者ID:martinsv,项目名称:phpipam,代码行数:31,代码来源:upgrade-execute.php

示例11: create_link

</sup></a>
		</li>

		<?php 
}
# check for new version periodically, 1x/week
if ($User->isadmin && strtotime(date("Y-m-d H:i:s")) - strtotime($User->settings->vcheckDate) > 604800) {
    # check for new version
    if (!($version = $Tools->check_latest_phpipam_version())) {
        # we failed, so NW is not ok. update time anyway to avoid future failures
        $Tools->update_phpipam_checktime();
    } else {
        # new version available
        if ($User->settings->version < $version) {
            print "<li>";
            print "\t<a href='" . create_link("administration", "version-check") . "' class='icon-li btn-warning' rel='tooltip' data-placement='bottom' title='" . _('New version available') . "'><i class='fa fa-bullhorn'></i><sup>{$version}</sup></a>";
            print "</li>";
        } else {
            # version ok
            $Tools->update_phpipam_checktime();
        }
    }
}
?>

	</ul>

	</div>	 <!-- end menu div -->
</nav>
</div>
开发者ID:julsoj,项目名称:phpipam,代码行数:30,代码来源:index.php

示例12: unset

    $missingExt[] = "php PEAR support";
}
# if any extension is missing print error and die!
if (sizeof($missingExt) != 1) {
    /* remove dummy 0 line */
    unset($missingExt[0]);
    /* headers */
    $error = "<html>";
    $error .= "<head>";
    $error .= "<base href='{$url}' />";
    $error .= '<link rel="stylesheet" type="text/css" href="css/bootstrap/bootstrap.min.css">';
    $error .= '<link rel="stylesheet" type="text/css" href="css/bootstrap/bootstrap-custom.css">';
    $error .= "</head>";
    $error .= "<body style='margin:0px;'>";
    $error .= '<div class="row header-install" id="header"><div class="col-xs-12">';
    $error .= '<div class="hero-unit" style="padding:20px;margin-bottom:10px;">';
    $error .= '<a href="' . create_link(null, null, null, null, null, true) . '">phpipam requirements error</a>';
    $error .= '</div>';
    $error .= '</div></div>';
    /* error */
    $error .= "<div class='alert alert-danger' style='margin:auto;margin-top:20px;width:500px;'><strong>" . _('The following required PHP extensions are missing') . ":</strong><br><hr>";
    $error .= '<ul>' . "\n";
    foreach ($missingExt as $missing) {
        $error .= '<li>' . $missing . '</li>' . "\n";
    }
    $error .= '</ul><hr>' . "\n";
    $error .= _('Please recompile PHP to include missing extensions and restart Apache.') . "\n";
    $error .= "</body>";
    $error .= "</html>";
    die($error);
}
开发者ID:netbuild,项目名称:phpipam,代码行数:31,代码来源:check_php_build.php

示例13: foreach

                foreach ($permissions as $key => $p) {
                    # get subnet name
                    $group = getGroupById($key);
                    # parse permissions
                    $perm = parsePermissions($p);
                    print $group['g_name'] . " : " . $perm . "<br>";
                }
            } else {
                print _("All groups: No access");
            }
        }
        print "</td>";
        print '	<td class="actions">' . "\n";
        print "\t<div class='btn-group btn-group-xs'>";
        print "\t\t<button class='btn btn-default editSection' data-action='edit'   data-sectionid='{$section['id']}'><i class='fa fa-pencil'></i></button>";
        print "\t\t<a class='btn btn-default' href='" . create_link("administration", "manageSection", "sectionChangelog", $section['id']) . "'><i class='fa fa-clock-o'></i></a>";
        print "\t\t<button class='btn btn-default editSection' data-action='delete' data-sectionid='{$section['id']}'><i class='fa fa-times'></i></button>";
        print "\t</div>";
        print '	</td>' . "\n";
        print '</tr>' . "\n";
    }
    ?>

</table>	<!-- end table -->

<!-- show no configured -->
<?php 
} else {
    ?>
<div class="alert alert-warn alert-absolute"><?php 
    print _('No sections configured');
开发者ID:kinhvan017,项目名称:phpipam,代码行数:31,代码来源:manageSection.php

示例14: create_link

                        } else {
                            $l['ctype'] = "Subnet";
                        }
                        break;
                    case "section":
                        $l['ctype'] = "Section";
                        break;
                }
                print "<tr>";
                print "\t<td>{$l['real_name']}</td>";
                print "\t<td>{$l['ctype']} / {$l['caction']} {$l['cresult']}</td>";
                # subnet, section or ip address
                if ($l['ctype'] == "IP address") {
                    print "\t<td><a href='" . create_link("subnets", $l['sectionId'], $l['subnetId'], "address-details", $l['tid']) . "'>" . $Subnets->transform_address($l['ip_addr'], "dotted") . "</a></td>";
                } elseif ($l['ctype'] == "Subnet") {
                    print "\t<td><a href='" . create_link("subnets", $l['sectionId'], $l['tid']) . "'>" . $Subnets->transform_address($l['ip_addr'], "dotted") . "/{$l['mask']}</a></td>";
                } elseif ($l['ctype'] == "Folder") {
                    print "\t<td><a href='" . create_link("folder", $l['sectionId'], $l['tid']) . "'>{$l['sDescription']}</a></td>";
                } elseif ($l['ctype'] == "Section") {
                    print "\t<td><a href='" . create_link("subnets", $l['tid']) . "'>{$l['sDescription']}</a></td>";
                }
                print "\t<td>{$l['cdate']}</td>";
                print "\t<td class='hidden-xs'>" . implode("<br>", $diff) . "</td>";
                print "</tr>";
                // next item
                $pc++;
            }
        }
    }
    print "</table>";
}
开发者ID:routenull0,项目名称:phpipam,代码行数:31,代码来源:changelog.php

示例15: array

     }
     $PHP_OUTPUT .= '>';
     $container1 = array();
     $container1['url'] = 'skeleton.php';
     $container1['body'] = 'rankings_alliance_vs_alliance.php';
     $container1['alliance_id'] = $curr_alliance->getAllianceID();
     $PHP_OUTPUT .= create_link($container1, $curr_alliance->getAllianceName());
     //$PHP_OUTPUT.=('.$db->escapeString($curr_alliance->getAllianceName()');
     $PHP_OUTPUT .= '</td>';
 } else {
     $container1 = array();
     $container1['url'] = 'skeleton.php';
     $container1['body'] = 'rankings_alliance_vs_alliance.php';
     $container1['alliance_id'] = 0;
     $PHP_OUTPUT .= '<td width=10% valign="top">';
     $PHP_OUTPUT .= create_link($container1, 'None');
     $PHP_OUTPUT .= '</td>';
 }
 foreach ($alliance_vs as $key => $id) {
     $db2->query('SELECT 1 FROM player WHERE alliance_id = ' . $db2->escapeNumber($id) . ' AND game_id = ' . $db2->escapeNumber($player->getGameID()) . ' LIMIT 1');
     if ($db2->nextRecord() == 0) {
         $out2 = TRUE;
     } else {
         $out2 = FALSE;
     }
     if ($curr_id == $id && $id != 0) {
         if ($out || $out2) {
             $PHP_OUTPUT .= '<td class="red">-';
         } elseif ($id == $player->getAllianceID() || $curr_id == $player->getAllianceID()) {
             $PHP_OUTPUT .= '<td class="bold">-';
         } else {
开发者ID:smrealms,项目名称:smrv2.0,代码行数:31,代码来源:rankings_alliance_vs_alliance.php


注:本文中的create_link函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。