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


PHP urlStr函数代码示例

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


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

示例1: display_submod

function display_submod($submod, $mod)
{
    if (!$submod->hasVisible()) {
        return;
    }
    echo '<div class="submod">';
    ?>
 <img src="<?php 
    echo $submod->_img;
    ?>
_select.png" alt="" style="float:right;" /><?php 
    /*if (!$submod->_visibility) { //if submod not visible
          return;
      }*/
    echo '<h3>';
    $url = urlStr($submod->_defaultpage);
    echo "<a style=\"text-decoration: none;\" href=\"{$url}\">" . $submod->getDescription() . "</a><br/>";
    echo "</h3>";
    print "<ul>";
    foreach ($submod->getPages() as $page) {
        display_page($page, $submod, $mod);
    }
    print "</ul>";
    echo '</div>';
}
开发者ID:neoclust,项目名称:mmc,代码行数:25,代码来源:default.php

示例2: header

    $_SESSION['request'] = $r->toS();
    header("Location: " . urlStrRedirect("base/computers/tmpdisplay", array('id' => $id, 'request' => 'stored_in_session', 'is_group' => $is_group, 'equ_bool' => $bool, 'name' => urlencode($name), 'save_type' => $save_type, 'visible' => $visible, 'imaging_server' => $imaging_server)));
    exit;
}
$name_exists = xmlrpc_group_name_exists($name, $group->id);
if (!isset($_POST['btnPrimary']) || $name_exists || !$check || isset($_POST['checkBool']) || isset($_POST['displayTmp']) || $name == '') {
    if ($id) {
        $name = $group->getName();
        $visible = $group->canShow();
    }
    $r->displayReqListInfos(false, array('gid' => $id));
    // TODO : put in class
    print "<hr/><table><tr>";
    if (hasCorrectAcl("base", "computers", "save")) {
        $_SESSION['request'] = $request;
        print "<form method='POST' action='" . urlStr("base/computers/save", array('request' => 'stored_in_session', 'id' => $id, 'is_group' => $is_group, 'imaging_server' => $imaging_server)) . "' >" . "<td>" . _T('Name :', 'dyngroup') . " <input name='name' type='text' value=\"" . htmlspecialchars($name) . "\" /></td>";
        if ($is_group) {
            print "<td>" . _T('save as', 'dyngroup') . " <select name='save_type'><option value='1' " . ($save_type == 1 ? 'selected' : '') . ">" . _T("query", "dyngroup") . "</option><option value='2' " . ($save_type == 2 ? 'selected' : '') . ">" . _T('result', 'dyngroup') . "</option></select></td>";
        } else {
            print "<td><input name='save_type' type='hidden' value='2'/></td>";
        }
        print "<td colspan='2'>" . _T("it should be", "dyngroup") . " <select name='visible'><option value='2' " . ($visible == 2 ? 'selected' : '') . ">" . _T("hidden", "dyngroup") . "</option><option value='1' " . ($visible == 1 ? 'selected' : '') . ">" . _T("visible", "dyngroup") . "</option></select></td>";
    }
    if ($r->countPart() > 0) {
        drawBoolEquation($bool);
    }
    if (hasCorrectAcl("base", "computers", "tmpdisplay")) {
        drawTemporaryButton();
    }
    if (hasCorrectAcl("base", "computers", "save")) {
        print "<td><input name='btnPrimary' value='" . _T('Save', 'dyngroup') . "' class='btnPrimary' type='submit'/></td>";
开发者ID:sebastiendu,项目名称:mmc,代码行数:31,代码来源:save.php

示例3: getRecordValueDescription

    $hosts[] = $r["hostname"];
    //rtrim($r[1],".");
    $types[] = $r["type"];
    $values[] = getRecordValueDescription($zone, $r["type"], $r["value"]);
    $params[] = array("zone" => $zone, "reverse" => $reverse, "id" => $r["id"], "serial" => $serial);
    $actionsMod[] = $editAction;
    if ($r["hostname"] === $curzone . "." && $r["type"] === "TXT" || $r["type"] == "SOA") {
        $actionsDel[] = $emptyAction;
    } else {
        $actionsDel[] = $delAction;
    }
}
//print_r($values);
$typeAsc = $sortby == "type" ? intval(!$asc) : "1";
$hostnameAsc = $sortby == "hostname" ? intval(!$asc) : "1";
$typeUrl = urlStr("network/network/zonerecords", array("zone" => $zone, "reverse" => $reverse, "sortby" => "type", "asc" => $typeAsc));
$hostnameUrl = urlStr("network/network/zonerecords", array("zone" => $zone, "reverse" => $reverse, "sortby" => "hostname", "asc" => $hostnameAsc));
$n = new OptimizedListInfos($hosts, "<a href='" . $hostnameUrl . "'>" . _T("Host name", "network") . "</a>");
$n->setTableHeaderPadding(1);
$n->setNavBar(new AjaxNavBar(count($records), $filter));
$n->setItemCount(count($records));
$n->start = 0;
$n->end = count($recordsatpage) - 1;
$n->addExtraInfo($types, "<a href='" . $typeUrl . "'>" . _T("Record type", "network")) . "</a>";
$n->addExtraInfo($values, _T("Record parameters", "network"));
$n->setName(_T("Host", "network"));
$n->setParamInfo($params);
$n->disableFirstColumnActionLink();
$n->addActionItemArray($actionsMod);
$n->addActionItemArray($actionsDel);
$n->display();
开发者ID:sebastiendu,项目名称:mmc,代码行数:31,代码来源:ajaxZoneRecordsFilter.php

示例4: state_tmpl

 else { $icons = state_tmpl($current_state); }
 $tab = 'tablogs';
 if ($icons['play'] == '' && $icons['stop'] == '' && $icons['pause'] == '') { $tab = 'tabhistory'; }
     
 if ($target_uuid && $target_uuid != '') {
     $param = array('uuid'=>$target_uuid, 'cmd_id'=>$cmd_id, 'bundle_id'=>$bid);
     if (!isset($gid) || $gid == '') {
         $param['coh_id'] = $coh_id;
     } else {
         $param['gid'] = $gid;
     }
     $linkdetail = urlStr("base/computers/msctabs/$tab", $param);
     $linklogs = urlStr("base/computers/msctabs/$tab", array('uuid'=>$target_uuid, 'gid'=>$gid));
 } else {
     $linkdetail = urlStr("base/computers/groupmsctabs/group$tab", array('uuid'=>$target_uuid, 'cmd_id'=>$cmd_id, 'bundle_id'=>$bid, 'gid'=>$gid));
     $linklogs = urlStr("base/computers/groupmsctabs/group$tab", array('uuid'=>$target_uuid, 'gid'=>$gid));
 }
 $a_date[] = $creation_date;
 $a_creator[] = $creator;
 $param = array('cmd_id'=>$cmd_id, 'title'=>$label, 'bundle_id'=>$bid, 'from'=>'msc|logs|consult');
 $no_actions = False;
 if (!isset($bid) || $bid == '') {
     $img = draw_image("modules/msc/graph/images/install_package.png", _T('Package', 'msc'));
 } else {
     $img = draw_image("modules/msc/graph/images/install_bundle.png", _T('Bundle', 'msc'));
 }
 if ($target == 'UNVISIBLEMACHINE') {
     $target = _T('Unavailable computer', 'msc');
     $a_cmd[] = $img." ".$label;
     $a_target[] = draw_image("img/machines/icn_machinesList.gif", _T('Machine', 'msc'))." ".$target;
     $no_actions = True;
开发者ID:neoclust,项目名称:mmc,代码行数:31,代码来源:ajaxConsultLogsFilter.php

示例5: header

    exit;
}
if ($_GET['bshow'] || $_POST['bshow']) {
    $group->show();
    header("Location: " . urlStrRedirect("base/computers/list"));
    exit;
}
if ($_GET['bhide'] || $_POST['bhide']) {
    $group->hide();
    header("Location: " . urlStrRedirect("base/computers/list"));
    exit;
}
//$group->prettyDisplay();
?>
 <form action="<?php 
echo urlStr("base/computers/details", array('id' => $id));
?>
" method="post"> <?php 
?>
 <input name="bback" type="submit" class="btnPrimary" value="<?php 
echo _T("Close", "dyngroup");
?>
" onClick="closePopup();
        return false;"/> <?php 
if ($group->isDyn() && $group->isGroup()) {
    print '<input name="bregen" type="submit" class="btnSecondary" value="' . _T("Regenerate", "dyngroup") . '"/>';
}
if ($group->canShow()) {
    print '<input name="bhide" type="submit" class="btnSecondary" value="' . _T("Hide", "dyngroup") . '"/>';
} else {
    print '<input name="bshow" type="submit" class="btnSecondary" value="' . _T("Show", "dyngroup") . '"/>';
开发者ID:sebastiendu,项目名称:mmc,代码行数:31,代码来源:details.php

示例6: delElementInList

 * along with MMC; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
require "modules/squid/includes/squid.inc.php";
if (isset($_POST["btdell"])) {
    delElementInList($list, $_POST["eltdata"]);
    $serviceName = getServiceName();
    $n = new NotifyWidgetSuccess(_T("Item deleted.", "squid"));
    handleServicesModule($n, array($serviceName => _T("Proxy", "squid")), "reload");
    redirectTo(urlStrRedirect($page));
}
if (isset($_GET["eltdata"])) {
    $data = urldecode($_GET["eltdata"]);
    ?>
	<form action="<?php 
    echo urlStr($page_delete);
    ?>
" method="post">
		<p><?php 
    printf(_T("You will remove  <b>%s</b>"), $data);
    ?>
</p><br />
	    <p><?php 
    echo _T("Are you sure ?");
    ?>
</p>
		<input name="eltdata" type="hidden" value="<?php 
    echo $data;
    ?>
" />
		<input name="btdell" type="submit" class="btnPrimary" value="<?php 
开发者ID:sebastiendu,项目名称:mmc,代码行数:31,代码来源:delete.php

示例7: foreach

            }
            return True;
        }
    }
    return False;
}
echo "<ul class='action'>";
foreach ($actions as $action) {
    if (is_array($paramArray)) {
        $paramArray['mod'] = $action->mod;
        if ($action->action == "vnc_client") {
            $paramArray['establishproxy'] = "yes";
        }
    }
    echo "<li class=\"" . $action->classCss . "\" style=\"list-style-type: none; border: none; float:left; \" >";
    if (is_array($paramArray) & !empty($paramArray)) {
        $urlChunk = $action->buildUrlChunk($paramArray);
    } else {
        $urlChunk = "&amp;" . $action->paramString . "=" . rawurlencode($paramArray);
    }
    if (modIsActive($action->action)) {
        if ($action->action == "vnc_client") {
            echo "<a title=\"" . $action->desc . "\" onclick=\"window.open('" . urlStr($action->path) . $urlChunk . "','mywin','left=20,top=20,width=300,height=150,toolbar=1,resizable=0');\">&nbsp;</a>";
        } else {
            $url = in_array('glpi', $_SESSION['supportModList']) && $action->path == 'base/computers/invtabs' ? 'base/computers/glpitabs' : $action->path;
            echo "<a title=\"" . $action->desc . "\" href=\"" . urlStr($url) . $urlChunk . "\">&nbsp;</a>";
        }
    }
    echo "</li>";
}
echo "</ul>";
开发者ID:sebastiendu,项目名称:mmc,代码行数:31,代码来源:menu_action.php

示例8: getLink

 function getLink()
 {
     return urlStr($_GET["module"] . "/" . $_GET["submod"] . "/" . $_GET["action"], array_merge(array("tab" => $this->id), $this->params));
 }
开发者ID:psyray,项目名称:mmc,代码行数:4,代码来源:PageGenerator.php

示例9: _T

                $head = _T($head, 'inventory');
            }
            if ($n == null) {
                $n = new OptimizedListInfos($vals, $head);
            } else {
                $n->addExtraInfo($vals, $head);
            }
        }
    }

    print "<div style=\"overflow: auto\">";
    if ($n != null) {
        $n->addActionItem(new ActionItem(_T("View", "inventory"),"invtabs","display","inventory", "base", "computers"));
        $n->addActionItem(new ActionPopupItem(_T("Informations", "inventory"),"infos","info","inventory", "inventory", "inventory"));
        $n->setParamInfo($params);
        $n->setTableHeaderPadding(1);
        $n->setItemCount($count);
        $n->setNavBar(new AjaxNavBar($count, $filter));
        $n->start = 0;
        $n->end = $maxperpage;
        $n->display();
    }
    print "</div>";
    ?><a href='<?php echo  urlStr("inventory/inventory/csv", array('table'=>$display, 'gid'=>$_GET["gid"], 'filter' => $_GET['filter'])) ?>'><img src='modules/inventory/graph/csv.png' alt='export csv'/></a><?php
}

?>

</table>

开发者ID:neoclust,项目名称:mmc,代码行数:29,代码来源:ajaxViewPart.php

示例10: ActionItem

    print "<div style=\"overflow: auto\">";
    if ($n != null) {
        $n->addActionItem(new ActionItem(_T("View", "inventory"), "invtabs", "display", "inventory", "base", "computers"));
        $n->addActionItem(new ActionPopupItem(_T("Information", "inventory"), "infos", "info", "inventory", "inventory", "inventory"));
        $n->setParamInfo($params);
        $n->setTableHeaderPadding(1);
        $n->setItemCount($count);
        $n->setNavBar(new AjaxNavBar($count, $filter));
        $n->start = 0;
        $n->end = $maxperpage;
        $n->display();
    }
    print "</div>";
    ?>
<a href='<?php 
    echo urlStr("inventory/inventory/csv", array('table' => $display, 'gid' => $_GET["gid"], 'filter' => $_GET['filter']));
    ?>
'><img src='modules/inventory/graph/csv.png' alt='export csv'/></a><?php 
}
?>

</table>

<script type="text/javascript">
    /* ==> CODE TO DISABLE
     jQuery('tbody tr td:not(.action)').click(function() {
     jQuery('#param').val(jQuery(this).text());
     pushSearch();
     });
     */
</script>
开发者ID:sebastiendu,项目名称:mmc,代码行数:31,代码来源:ajaxViewPart.php

示例11: isset

 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with MMC; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
require "modules/network/includes/network2.inc.php";
require "localSidebar.php";
require "graph/navbar.inc.php";
$reverse = isset($_GET["reverse"]) && $_GET["reverse"] == 1;
$zone = $_GET["zone"];
$sortby = $_GET["sortby"];
$asc = $_GET["asc"];
$options = array('zone' => $zone, 'reverse' => $reverse, 'sortby' => $sortby, 'asc' => $asc);
$ajax = new AjaxFilter(urlStrRedirect('network/network/ajaxZoneRecordsFilter', $options));
$ajax->display();
$title = $reverse ? sprintf(_T("Records of reverse zone for zone %s"), $zone) : sprintf(_T("Records of zone %s"), $zone);
$p = new PageGenerator($title);
$sidemenu->forceActiveItem("index");
$p->setSideMenu($sidemenu);
$p->display();
$ajax->displayDivToUpdate();
$f = new Form();
if ($reverse || count(getReverseZone($zone))) {
    $linktext = $reverse ? _T("Manage zone records") : _T("Manage reverse zone records");
    $f->addSummary("<a href='" . urlStr("network/network/zonerecords", array("zone" => $zone, "reverse" => !$reverse)) . "'>" . $linktext . "</a>");
}
$f->addOnClickButton(_T("Add a record"), urlStr("network/network/addrecord", array("zone" => $zone, "reverse" => $reverse)));
$f->display();
开发者ID:psyray,项目名称:mmc,代码行数:31,代码来源:zonerecords.php

示例12: xmlrpc_canIRegisterThisComputer

 $canReg = xmlrpc_canIRegisterThisComputer($params['target_uuid']);
 if (!$canReg[0] && $canReg[1]) {
     $p = new PageGenerator(sprintf(_T("%s's computer imaging", 'imaging'), $hostname));
     $sidemenu->forceActiveItem("index");
     $p->setSideMenu($sidemenu);
     $p->display();
     # when the computer is in a profile, but the profile is not registered
     # display an information message
     $msg = _T("This computer can't be declared in the imaging module: it's already part of a broken imaging group.", "imaging");
     $t1 = new TitleElement($msg, 3);
     $t1->display();
     # give a link to the profile registering
     if (count($canReg) == 2 and $canReg[1] != '') {
         $group = new Group($canReg[1], true);
         $params = array("id" => $canReg[1], "gid" => $canReg[1], "groupname" => $group->getName());
         $url = urlStr("imaging/manage/groupimgtabs", $params);
         $msg = sprintf(_T("Please declare the imaging group first %shere%s.", "imaging"), "<a href='{$url}'>", "</a>");
         $t2 = new TitleElement($msg, 3);
         $t2->display();
     }
 } else {
     $ret = xmlrpc_getComputerSynchroState($params['target_uuid']);
     if (isset($_POST["bresetsynchrostate"])) {
         if (xmlrpc_resetSynchroState($params['uuid'], '')) {
             new NotifyWidgetSuccess(sprintf(_T("Reset synchronisation state for %s (%s) succeed", "imaging"), $params['target_name'], $params['uuid']));
             header("Location: " . urlStrRedirect("base/computers/imgtabs", $params));
             exit;
         } else {
             new NotifyWidgetFailure(sprintf(_T("Failed to reset synchronise state.", "imaging")));
         }
     }
开发者ID:pulse-project,项目名称:pulse,代码行数:31,代码来源:tabs.php

示例13: _base_baseEdit

/**
 * Form on user edit page
 * @param $FH FormHandler of the page
 * @param $mode add or edit mode
 */
function _base_baseEdit($FH, $mode)
{
    $uid = $FH->getArrayOrPostValue("uid");
    $f = new DivForModule(_("User attributes"), "#F4F4F4");
    $f->push(new Table());
    if ($mode == "add") {
        $loginTpl = new InputTpl("uid", '/^[a-zA-Z0-9][A-Za-z0-9_.\\-]*$/');
    } else {
        $loginTpl = new HiddenTpl("uid");
    }
    $f->add(new TrFormElement(_("Login"), $loginTpl), array("value" => $uid));
    if ($mode == "edit") {
        $lastlog = get_last_log_user($uid);
        if ($lastlog[0] != 0) {
            $f->add(new LinkTrFormElement(_("Last action"), new HiddenTpl("lastaction")), array("value" => urlStr("base/users/loguser", array("user" => $uid)), "name" => $lastlog[1][0]["date"]));
        }
    }
    $f->add(new TrFormElement(_("Password"), new PasswordTpl("pass")), array("value" => ""));
    $f->add(new TrFormElement(_("Confirm password"), new PasswordTpl("confpass")), array("value" => ""));
    $f->add(new TrFormElement(_("Photo"), new ImageTpl("jpegPhoto")), array("value" => $FH->getArrayOrPostValue("jpegPhoto"), "action" => $mode));
    $f->add(new TrFormElement(_("Last name"), new InputTpl("sn")), array("value" => $FH->getArrayOrPostValue("sn")));
    $f->add(new TrFormElement(_("First name"), new InputTpl("givenName")), array("value" => $FH->getArrayOrPostValue("givenName")));
    $f->add(new TrFormElement(_("Title"), new InputTpl("title")), array("value" => $FH->getArrayOrPostValue("title")));
    $f->add(new TrFormElement(_("Email address"), new MailInputTpl("mail")), array("value" => $FH->getArrayOrPostValue("mail")));
    $f->pop();
    $phoneregexp = "/^[a-zA-Z0-9(/ +\\-]*\$/";
    $tn = new MultipleInputTpl("telephoneNumber", _("Telephone number"));
    $tn->setRegexp($phoneregexp);
    $f->add(new FormElement(_("Telephone number"), $tn), $FH->getArrayOrPostValue("telephoneNumber", "array"));
    $f->push(new Table());
    $f->add(new TrFormElement(_("Mobile number"), new InputTpl("mobile", $phoneregexp)), array("value" => $FH->getArrayOrPostValue("mobile")));
    $f->add(new TrFormElement(_("Fax number"), new InputTpl("facsimileTelephoneNumber", $phoneregexp)), array("value" => $FH->getArrayOrPostValue("facsimileTelephoneNumber")));
    $f->add(new TrFormElement(_("Home phone number"), new InputTpl("homePhone", $phoneregexp)), array("value" => $FH->getArrayOrPostValue("homePhone")));
    $languages = new SelectItem("preferredLanguage");
    $labels = array(_("Choose language")) + array_values(getLanguages());
    $values = array("") + array_keys(getLanguages());
    $languages->setElements($labels);
    $languages->setElementsVal($values);
    $f->add(new TrFormElement(_("Preferred language"), $languages), array("value" => $FH->getArrayOrPostValue("preferredLanguage")));
    $checked = "checked";
    if ($FH->getArrayOrPostValue("loginShell") != '/bin/false') {
        $checked = "";
    }
    $f->add(new TrFormElement(_("User is disabled, if checked"), new CheckboxTpl("isBaseDesactive"), array("tooltip" => _("A disabled user can't log in any UNIX services. <br/>\n                                Her/his login shell command is replaced by /bin/false"))), array("value" => $checked));
    /* Primary group */
    $groupsTpl = new SelectItem("primary");
    $all_groups = search_groups();
    $groups = array();
    foreach ($all_groups as $key => $infos) {
        $groups[] = $infos[0];
    }
    $groupsTpl->setElements($groups);
    if ($mode == "add") {
        $primary = getUserDefaultPrimaryGroup();
    } else {
        if ($mode == "edit") {
            /* In case of error, display the POST values */
            if ($FH->isUpdated("primary")) {
                $primary = $FH->getValue("primary");
            } else {
                $primary = getUserPrimaryGroup($uid);
                /* If the group is not an LDAP group */
                if (!in_array($primary, $groups)) {
                    $primaryGroups = $groups;
                    $primaryGroups[] = $primary;
                    $groupsTpl->setElements($primaryGroups);
                }
            }
        }
    }
    $f->add(new TrFormElement(_("Primary group"), $groupsTpl), array("value" => $primary));
    /* Secondary groups */
    $groupsTpl = new MembersTpl("secondary");
    $groupsTpl->setTitle(_("User's groups"), _("All groups"));
    // get the user's groups
    /* In case of error, display the POST values */
    if ($FH->getPostValue("secondary")) {
        $user_groups = $FH->getPostValue("secondary");
    } else {
        if ($mode == 'edit') {
            $user_groups = getUserSecondaryGroups($uid);
        } else {
            $user_groups = array();
        }
    }
    $member = array();
    foreach ($user_groups as $group) {
        $member[$group] = $group;
    }
    // get all groups
    $available = array();
    foreach ($groups as $group) {
        if (!in_array($group, $member)) {
            $available[$group] = $group;
        }
//.........这里部分代码省略.........
开发者ID:neoclust,项目名称:mmc,代码行数:101,代码来源:publicFunc.php

示例14: array

 $tab = 'tablogs';
 if ($icons['play'] == '' && $icons['stop'] == '' && $icons['pause'] == '') {
     $tab = 'tabhistory';
 }
 if ($target_uuid && $target_uuid != '') {
     $param = array('uuid' => $target_uuid, 'cmd_id' => $cmd_id, 'bundle_id' => $bid, 'commands' => $command_type);
     if (!isset($gid) || $gid == '') {
         $param['coh_id'] = $coh_id;
     } else {
         $param['gid'] = $gid;
     }
     $linkdetail = urlStr("msc/logs/viewLogs", $param);
     $linklogs = urlStr("msc/logs/viewLogs", array('uuid' => $target_uuid, 'gid' => $gid));
 } else {
     $linkdetail = urlStr("msc/logs/viewLogs", array('uuid' => $target_uuid, 'cmd_id' => $cmd_id, 'bundle_id' => $bid, 'gid' => $gid, 'commands' => $command_type));
     $linklogs = urlStr("msc/logs/viewLogs", array('uuid' => $target_uuid, 'gid' => $gid));
 }
 $a_date[] = $creation_date;
 $start_dates[] = _toDate($start_date);
 $end_dates[] = _toDate($end_date);
 $a_deployment_intervals[] = $deployment_intervals;
 $a_creator[] = $creator;
 $param = array('cmd_id' => $cmd_id, 'title' => $label, 'bundle_id' => $bid, 'from' => 'msc|logs|consult');
 $no_actions = False;
 if (!isset($bid) || $bid == '') {
     $a_donepercent[] = $done_percent;
     $img = draw_image("modules/msc/graph/images/install_package.png", _T('Package', 'msc'));
 } else {
     $img = draw_image("modules/msc/graph/images/install_bundle.png", _T('Bundle', 'msc'));
     $a_donepercent[] = '-';
 }
开发者ID:pulse-project,项目名称:pulse,代码行数:31,代码来源:ajaxConsultLogsFilter.php

示例15: getParams

    }
}
$params = getParams();
$id = $_GET['itemid'];
$tid = $_GET['target_uuid'];
$label = urldecode($_GET['itemlabel']);
if (isset($_GET['gid'])) {
    $type = 'group';
} else {
    $type = '';
}
$ret = xmlrpc_areImagesUsed(array(array($id, $tid, $type)));
$ret = $ret[$id];
?>
<form name="showTarget" action="<?php 
echo urlStr("base/computers/showtarget", $params);
?>
" method="post">
    <p><?php 
printf(_T("Show all targets that use that image in their boot menu", "imaging"));
?>
</p>
<?php 
foreach ($ret as $target) {
    /*
     * $target = array(
     *      [0] => UUID of the target
     *      [1] => 1 or -1 // if -1: target is an imaging server else it is a computer
     *      [2] => target name
     *  );
     */
开发者ID:sebastiendu,项目名称:mmc,代码行数:31,代码来源:showtarget.php


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