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


PHP msg_warning函数代码示例

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


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

示例1: msg_okay

     $stmtz = $mysqli->prepare("SELECT id FROM gameservers WHERE user_id = ?");
     $stmtz->bind_param('i', $row[0]);
     $stmtz->execute();
     $stmtz->bind_result($id_result);
     $stmtz->fetch();
     $stmtz->close();
     if ($id_result == 0 and $_SESSION['user_id'] != $row[0]) {
         $stmt = $mysqli->prepare("DELETE FROM users WHERE id = ?");
         $stmt->bind_param('i', $row[0]);
         $stmt->execute();
         $stmt->close();
         msg_okay(_users_message_deleted);
     } elseif ($_SESSION['user_id'] == $row[0]) {
         msg_warning(_users_message_yourself);
     } else {
         msg_warning(_users_message_gameserver);
     }
 } elseif ($page == "users?edit-" . $row[0]) {
     if ($_SERVER['REQUEST_METHOD'] == 'POST' and isset($_POST['confirm'])) {
         $error = false;
         $msg = "";
         $rank = 2;
         $name = htmlentities($_POST['name']);
         $email = htmlentities($_POST['email']);
         $password = htmlentities($_POST['pwd1']);
         if (isset($_POST['administrator'])) {
             $rank = 1;
         }
         if (!$_POST['pwd1'] == "") {
             if ($_POST['pwd1'] != $_POST['pwd2']) {
                 $error = true;
开发者ID:sollidius,项目名称:Prometheus,代码行数:31,代码来源:users.php

示例2: print_computers_real

function print_computers_real($systemid)
{
    global $l, $list_fields, $list_col_cant_del, $default_fields, $tab_options, $protectedPost;
    if (isset($protectedPost["actshowgroup"]) and $protectedPost["modify"] != "") {
        foreach ($protectedPost as $key => $val) {
            //check65422
            if (substr($key, 0, 5) == "check") {
                update_computer_group(substr($key, 5), $systemid, $protectedPost["actshowgroup"]);
            }
        }
        $tab_options['CACHE'] = 'RESET';
    }
    //group 2.0 version
    $sql_group = "SELECT xmldef FROM groups WHERE hardware_id='%s'";
    $arg = $systemid;
    $resGroup = mysql2_query_secure($sql_group, $_SESSION['OCS']["readServer"], $arg);
    $valGroup = mysql_fetch_array($resGroup);
    //group old version
    if (!$valGroup["xmldef"]) {
        $sql_group = "SELECT request FROM groups WHERE hardware_id='%s'";
        $arg = $systemid;
        $resGroup = mysql2_query_secure($sql_group, $_SESSION['OCS']["readServer"], $arg);
        $valGroup = mysql_fetch_array($resGroup);
        $request = $valGroup["request"];
        $tab_id = array();
        $result_value = mysql_query($request, $_SESSION['OCS']["readServer"]) or die(mysql_error($_SESSION['OCS']["readServer"]));
        $fied_id_name = mysql_field_name($result_value, 0);
        while ($value = mysql_fetch_array($result_value)) {
            $tab_id[] = $value[$fied_id_name];
        }
    } else {
        $tab_list_sql = regeneration_sql($valGroup["xmldef"]);
        $i = 1;
        $tab_id = array();
        while ($tab_list_sql[$i]) {
            if ($tab_id != array()) {
                if (strtolower(substr($tab_list_sql[$i], 0, 19)) == "select distinct id ") {
                    $tab_list_sql[$i] .= " and id in (" . implode(",", $tab_id) . ")";
                } else {
                    $tab_list_sql[$i] .= " and hardware_id in (" . implode(",", $tab_id) . ")";
                }
                unset($tab_id);
            }
            $result_value = mysql_query(xml_decode($tab_list_sql[$i]), $_SESSION['OCS']["readServer"]) or die(mysql_error($_SESSION['OCS']["readServer"]));
            while ($value = mysql_fetch_array($result_value)) {
                $tab_id[] = $value["HARDWARE_ID"];
            }
            $i++;
        }
    }
    if ($tab_id == array()) {
        msg_warning($l->g(766));
        return false;
    }
    $form_name = "calcul_computer_groupcache";
    $table_name = $form_name;
    echo "<font color=red><b>" . $l->g(927) . "</b></font>";
    echo open_form($form_name);
    $queryDetails = "SELECT ";
    foreach ($list_fields as $lbl => $value) {
        $queryDetails .= $value . ",";
    }
    $queryDetails = substr($queryDetails, 0, -1) . " FROM  hardware h LEFT JOIN accountinfo a ON a.hardware_id=h.id\n\t\t\t\t\t\twhere h.id in (" . implode(",", $tab_id) . ") and deviceid <> '_SYSTEMGROUP_' \n\t\t\t\t\t\t\t\t\t\tAND deviceid <> '_DOWNLOADGROUP_'";
    if (isset($mesmachines) and $mesmachines != '') {
        $queryDetails .= $mesmachines;
    }
    $tab_options['FILTRE'] = array('h.NAME' => 'Nom');
    tab_req($table_name, $list_fields, $default_fields, $list_col_cant_del, $queryDetails, $form_name, 90, $tab_options);
    form_action_group($systemid);
    echo close_form();
}
开发者ID:inkoss,项目名称:karoshi-server,代码行数:71,代码来源:ms_group_show.php

示例3: array

                $list_subnet = array();
            }
            $list_subnet = array(0 => "") + $list_subnet;
            $default_values = array('RSX_NAME' => $protectedPost['RSX_NAME'], 'ID_NAME' => $list_subnet, 'ADD_IP' => $protectedPost['ADD_IP'], 'ADD_SX_RSX' => $protectedPost['ADD_SX_RSX']);
            form_add_subnet($title, $default_values, $form_name);
        } else {
            $sql = "select NETID,NAME,ID,MASK from subnet";
            $list_fields = array('NETID' => 'NETID', $l->g(49) => 'NAME', 'ID' => 'ID', 'MASK' => 'MASK', 'MODIF' => 'NETID', 'SUP' => 'NETID');
            //$list_fields['SUP']='ID';
            $default_fields = $list_fields;
            $list_col_cant_del = $list_fields;
            $result_exist = ajaxtab_entete_fixe($list_fields, $default_fields, $tab_options, $list_col_cant_del);
            echo "<input type = submit value='" . $l->g(116) . "' name='ADD_SUB'>";
        }
    } else {
        msg_warning($method);
    }
} elseif ($protectedPost['onglet'] == 'ADMIN_TYPE') {
    if (isset($protectedPost['Reset_modif'])) {
        unset($protectedPost['MODIF']);
    }
    if (isset($protectedPost['SUP_PROF']) and $protectedPost['SUP_PROF'] != '') {
        delete_type($protectedPost['SUP_PROF']);
        $tab_options['CACHE'] = 'RESET';
    }
    if (isset($protectedPost['Valid_modif'])) {
        $result = add_type($protectedPost['TYPE_NAME'], $protectedPost['MODIF']);
        if ($result) {
            msg_error($result);
            $protectedPost['ADD_TYPE'] = "VALID";
        } else {
开发者ID:stweil,项目名称:OCSInventory-ocsreports,代码行数:31,代码来源:ms_admin_ipdiscover.php

示例4: msg_warning

  },
  features: {
    grid: {
      draw: [true, false],
      props: {
        "stroke-dasharray": "-"
      }
    },
    legend: {
      horizontal: false,
      width: 80,
      height: 50,
      x: 220,
      y: 250,
      dotType: "circle",
      dotProps: {
        stroke: "white",
        "stroke-width": 2
      },
      borderProps: {
        opacity: 0.3,
        fill: "#c0c0c0",
        "stroke-width": 0
      }
    }
  }
};		</script>';
    echo "</div><br>";
} else {
    msg_warning($l->g(989));
}
开发者ID:inkoss,项目名称:karoshi-server,代码行数:31,代码来源:ms_speed_stat.php

示例5: elseif

             $fragOk = true;
         }
     } else {
         $fragOk = true;
     }
     if (!$fragOk) {
         $error .= $l->g(467) . " http://" . $protectedPost['FILE_SERV'] . "/" . $protectedGet["active"] . "/<br>";
     } elseif ($fragAvail) {
         fclose($fragOk);
     }
     if (!$fragOk or !$httpsOk) {
         $error .= "<br>" . $l->g(468) . "<br><br>";
         $error .= "<input type='submit' name='YES' value='" . $l->g(455) . "'>&nbsp&nbsp&nbsp<input type='submit' name='NO' value='" . $l->g(454) . "'>";
     }
     if ($error != '') {
         msg_warning($error);
     }
 }
 if ($error == "" and isset($protectedPost['Valid_modif']) or isset($protectedPost['YES'])) {
     if ($protectedPost['choix_activ'] == "MAN") {
         activ_pack($protectedGet["active"], $protectedPost["HTTPS_SERV"], $protectedPost['FILE_SERV']);
     }
     if ($protectedPost['choix_activ'] == "AUTO") {
         activ_pack_server($protectedGet["active"], $protectedPost["HTTPS_SERV"], $protectedPost['FILE_SERV_REDISTRIB']);
     }
     echo "<script> alert('" . $l->g(469) . "');window.opener.document.packlist.submit(); self.close();</script>";
 }
 if ($_SESSION['OCS']["use_redistribution"] == 1) {
     $list_choise['MAN'] = $l->g(650);
     $list_choise['AUTO'] = $l->g(649);
     $choix_activ = $l->g(514) . ' : ' . show_modif($list_choise, 'choix_activ', 2, $form_name) . "<br>";
开发者ID:remicollet,项目名称:OCSInventory-ocsreports,代码行数:31,代码来源:ms_tele_popup_active.php

示例6: while

            <div class="col-lg-12">
              <?php 
 $query = "SELECT id FROM backup_server ORDER by id";
 if ($result = $mysqli->query($query)) {
     /* fetch object array */
     while ($row = $result->fetch_row()) {
         if ($page == "backup?delete-" . $row[0]) {
             $error = false;
             if ($error == false) {
                 $stmt = $mysqli->prepare("DELETE FROM backup_server WHERE id = ?");
                 $stmt->bind_param('i', $row[0]);
                 $stmt->execute();
                 $stmt->close();
                 msg_okay(_backup_message_removed);
             } else {
                 msg_warning($msg);
             }
         } elseif ($page == "backup?edit-" . $row[0]) {
             if ($_SERVER['REQUEST_METHOD'] == 'POST') {
                 if (isset($_POST['confirm'])) {
                     $error = false;
                     $name = htmlentities($_POST['name']);
                     $type = htmlentities($_POST['type']);
                     $ip = htmlentities($_POST['ip']);
                     $port = htmlentities($_POST['port']);
                     $user = htmlentities($_POST['user']);
                     $password = htmlentities($_POST['password']);
                     if (!preg_match("/^[a-zA-Z0-9._-]+\$/", $name)) {
                         $msg = _addons_message_error_name . "<br>";
                         $error = true;
                     }
开发者ID:sollidius,项目名称:Prometheus,代码行数:31,代码来源:backup.php

示例7: option_conf_activate

//====================================================================================
/*
 * workflow for Teledeploy 
 * 
 */
require_once 'require/function_telediff_wk.php';
//TELEDIFF_WK
$activate = option_conf_activate('TELEDIFF_WK');
if ($activate) {
    if (isset($protectedPost['MODIF']) and $protectedPost['MODIF'] != null) {
        $protectedPost['onglet'] = 2;
    }
    //print_r($protectedPost);
    $infos_status = list_status();
    if ($infos_status['NIV_BIS'] == "") {
        msg_warning($l->g(1089));
    } else {
        //define tab
        $data_on[1] = $l->g(1072);
        $data_on[2] = $l->g(1073);
    }
    if ($_SESSION['OCS']['CONFIGURATION']['TELEDIFF_WK'] == 'YES') {
        $data_on[4] = $l->g(107);
    }
    $form_name = "admins";
    echo open_form($form_name);
    if (isset($data_on)) {
        onglet($data_on, $form_name, "onglet", 4);
        $table_name = $form_name;
        echo '<div class="mlt_bordure" >';
        if ($protectedPost['onglet'] == 2) {
开发者ID:inkoss,项目名称:karoshi-server,代码行数:31,代码来源:ms_teledeploy_workflow.php

示例8: msg_warning

                            $hide_msg = true;
                        }
                    }
                }
                $stmt = $mysqli->prepare("SELECT name,name_internal,type,type_name,map_path,gameq,app_set_config,appid FROM templates WHERE id = ?");
                $stmt->bind_param('i', $row[0]);
                $stmt->execute();
                $stmt->bind_result($db_name, $db_internal, $db_type, $db_type_name, $db_path, $db_gameq, $db_app_set_config, $db_appid);
                $stmt->fetch();
                $stmt->close();
                echo '<form class="form-horizontal" action="index.php?page=templates?edit-' . $row[0] . '" method="post">';
                ?>
                            <div class="form-group">
                              <?php 
                if ($limited == true and $hide_msg == false) {
                    msg_warning(_template_limited);
                }
                ?>
                              <label class="control-label col-sm-2"><?php 
                echo _template_name;
                ?>
/<?php 
                echo _template_internal;
                ?>
:</label>
                              <div class="col-sm-3">
                                <?php 
                if ($limited == true) {
                    echo '<input type="text" class="form-control input-sm" name="name" value="' . $db_name . '" readonly="readonly">';
                } else {
                    echo '<input type="text" class="form-control input-sm" name="name" value="' . $db_name . '">';
开发者ID:sollidius,项目名称:Prometheus,代码行数:31,代码来源:templates.php

示例9: nb_page

function nb_page($form_name = '', $taille_cadre = '80', $bgcolor = '#C7D9F5', $bordercolor = '#9894B5', $table_name = '')
{
    global $protectedPost, $l;
    //catch nb result by page
    if (isset($_SESSION['OCS']['nb_tab'][$table_name])) {
        $protectedPost["pcparpage"] = $_SESSION['OCS']['nb_tab'][$table_name];
    } elseif (isset($_COOKIE[$table_name . '_nbpage'])) {
        $protectedPost["pcparpage"] = $_COOKIE[$table_name . '_nbpage'];
    }
    if ($protectedPost['old_pcparpage'] != $protectedPost['pcparpage']) {
        $protectedPost['page'] = 0;
    }
    if (!isset($protectedPost["pcparpage"]) or $protectedPost["pcparpage"] == "") {
        $protectedPost["pcparpage"] = PC4PAGE;
    }
    $html_show = "<table align=center width='80%' border='0' bgcolor=#f2f2f2>";
    //gestion d"une phrase d'alerte quand on utilise le filtre
    if (isset($protectedPost['FILTRE_VALUE']) and $protectedPost['FILTRE_VALUE'] != '' and $protectedPost['RAZ_FILTRE'] != 'RAZ') {
        $html_show .= msg_warning($l->g(884));
    }
    $html_show .= "<tr><td align=right>";
    if (!isset($protectedPost['SHOW'])) {
        $protectedPost['SHOW'] = "SHOW";
    }
    if ($protectedPost['SHOW'] == 'SHOW') {
        $html_show .= "<a href=# OnClick='pag(\"NOSHOW\",\"SHOW\",\"" . $form_name . "\");'><img src=image/no_show.png></a>";
    } elseif ($protectedPost['SHOW'] != 'NEVER_SHOW') {
        $html_show .= "<a href=# OnClick='pag(\"SHOW\",\"SHOW\",\"" . $form_name . "\");'><img src=image/show.png></a>";
    }
    $html_show .= "</td></tr></table>";
    $html_show .= "<table align=center width='80%' border='0' bgcolor=#f2f2f2";
    if ($protectedPost['SHOW'] == 'NOSHOW' or $protectedPost['SHOW'] == 'NEVER_SHOW') {
        $html_show .= " style='display:none;'";
    }
    $html_show .= "><tr><td align=center>";
    $html_show .= "<table cellspacing='5' width='" . $taille_cadre . "%' BORDER='0' ALIGN = 'Center' CELLPADDING='0' BGCOLOR='" . $bgcolor . "' BORDERCOLOR='" . $bordercolor . "'><tr><td align=center>";
    $machNmb = array(5 => 5, 10 => 10, 15 => 15, 20 => 20, 50 => 50, 100 => 100, 200 => 200, 1000000 => $l->g(215));
    $pcParPageHtml = $l->g(340) . ": " . show_modif($machNmb, 'pcparpage', 2, $form_name, array('DEFAULT' => 'NO'));
    $pcParPageHtml .= "</td></tr></table>\n\t</td></tr><tr><td align=center>";
    $html_show .= $pcParPageHtml;
    if (isset($protectedPost["pcparpage"])) {
        $deb_limit = $protectedPost['page'] * $protectedPost["pcparpage"];
        $fin_limit = $deb_limit + $protectedPost["pcparpage"] - 1;
    }
    $html_show .= "<input type='hidden' id='SHOW' name='SHOW' value='" . $protectedPost['SHOW'] . "'>";
    if ($form_name != '') {
        echo $html_show;
    }
    return array("BEGIN" => $deb_limit, "END" => $fin_limit);
}
开发者ID:remicollet,项目名称:OCSInventory-ocsreports,代码行数:50,代码来源:function_table_html.php

示例10: msg_okay

             if ($error == false) {
                 $stmt = $mysqli->prepare("DELETE FROM dedicated WHERE id = ?");
                 $stmt->bind_param('i', $row["id"]);
                 $stmt->execute();
                 $stmt->close();
                 $stmt = $mysqli->prepare("DELETE FROM jobs WHERE dedicated_id = ?");
                 $stmt->bind_param('i', $row["id"]);
                 $stmt->execute();
                 $stmt->close();
                 msg_okay(_dedicated_deleted);
             } else {
                 msg_warning($msg);
             }
         } elseif ($page == "rootserver?delete=" . $row["id"]) {
             //soonTM
             msg_warning("soonTM");
         }
     }
     /* free result set */
     $result->close();
 }
 if ($page == "rootserver?add") {
     if ($_SERVER['REQUEST_METHOD'] == 'POST') {
         if (isset($_POST['confirm'])) {
             $error = false;
             $status = 1;
             $name = htmlentities($_POST['name']);
             $ip = htmlentities($_POST['ip']);
             $port = htmlentities($_POST['port']);
             $user = htmlentities($_POST['user']);
             $password = htmlentities($_POST['password']);
开发者ID:sollidius,项目名称:Prometheus,代码行数:31,代码来源:rootserver.php

示例11: open_form

echo "<table align='center'><th>";
echo open_form("PluginInstall");
$availablePlugins = scan_downloaded_plugins();
if (!empty($availablePlugins)) {
    echo "<select name='plugin'>";
    foreach ($availablePlugins as $key => $value) {
        $name = explode(".", $value);
        $info = new SplFileInfo(PLUGINS_DL_DIR . "/" . $value);
        if ($info->getExtension() == "zip") {
            echo "<option value={$value} >{$name['0']}</option>";
        }
    }
    echo "</select>";
    echo "<input type='submit' value='Install'>";
} else {
    msg_warning($l->g(7014));
}
echo close_form();
echo "</th></table>";
if (isset($protectedPost['plugin'])) {
    $pluginArchive = $protectedPost['plugin'];
    $bool = install($pluginArchive);
    if ($bool) {
        $pluginame = explode(".", $pluginArchive);
        $plugintab = array("name" => $pluginame[0]);
        $isok = check($plugintab);
        mv_computer_detail($pluginame[0]);
        $result = mv_server_side($pluginame[0]);
        if ($result) {
            exec_plugin_soap_client($pluginame[0], 1);
        }
开发者ID:stweil,项目名称:OCSInventory-ocsreports,代码行数:31,代码来源:ms_pluginsmanager.php

示例12: printEnTete

// OCS INVENTORY REPORTS
// Copyleft Erwan GOALOU 2010 (erwan(at)ocsinventory-ng(pt)org)
// Web: http://www.ocsinventory-ng.org
//
// This code is open source and may be copied and modified as long as the source
// code is always made freely available.
// Please refer to the General Public Licence http://www.gnu.org/ or Licence.txt
//====================================================================================
require 'require/function_stats.php';
$form_name = "stats";
$table_name = $form_name;
printEnTete($l->g(1251));
echo open_form($form_name);
$plugin = false;
$stats = '';
foreach ($_SESSION['OCS']['URL'] as $name => $lbl) {
    if (substr($name, 0, 9) == 'ms_stats_' and $_SESSION['OCS']['DIRECTORY'][$name] == 'ms_stats') {
        $plugin = true;
        require_once $name . ".php";
    }
}
if ($plugin) {
    //Create the chart - Column 3D Chart with data from strXML variable using dataXML method
    onglet($data_on, $form_name, "onglet", 4);
    echo '<div class="mlt_bordure" >';
    echo $stats;
    echo "</div>";
} else {
    msg_warning($l->g(1262));
}
echo close_form();
开发者ID:inkoss,项目名称:karoshi-server,代码行数:31,代码来源:ms_stats.php

示例13: substr

        }
    }
    $queryDetails = substr($queryDetails, 0, -6);
    if (!isset($protectedPost['SHOW'])) {
        $protectedPost['SHOW'] = 'NOSHOW';
    }
    if (!isset($protectedPost["pcparpage"])) {
        $protectedPost["pcparpage"] = 5;
    }
    $list_fields[$l->g(49)] = 'NAME';
    $list_fields[$l->g(80)] = 'LBL';
    if (!$no_delete) {
        $list_fields['SUP'] = 'NAME';
        $list_fields['CHECK'] = 'NAME';
    } else {
        msg_warning($_SESSION['OCS']['CONF_PROFILS_DIR'] . " " . $l->g(1006) . ". " . $l->g(1275));
    }
    $list_col_cant_del = $list_fields;
    $default_fields = $list_col_cant_del;
    $are_result = tab_req($table_name, $list_fields, $default_fields, $list_col_cant_del, $queryDetails, $form_name, 100, $tab_options);
    //traitement par lot
    if ($are_result) {
        if (!$no_delete) {
            del_selection($form_name);
        }
        if ($protectedGet['form']) {
            reloadform_closeme($protectedGet['form']);
        }
    }
} elseif ($protectedPost['onglet'] == 2) {
    if ($no_delete) {
开发者ID:inkoss,项目名称:karoshi-server,代码行数:31,代码来源:ms_new_profil.php

示例14: tab_req


//.........这里部分代码省略.........
                    break;
                }
                //on arr�te le traitement si on est au dessus du nombre de ligne
                foreach ($item as $key => $value) {
                    $sql_data_cache[$index][$key] = $value;
                    if ($index < $value_data_end and $index >= $value_data_begin) {
                        flush();
                        $sql_data[$index][$key] = $value;
                        foreach ($list_fields as $key => $value) {
                            if ($tab_options['VALUE'][$key]) {
                                if ($tab_options['VALUE'][$key][$champs_index] == "" and isset($tab_options['VALUE_DEFAULT'][$key])) {
                                    $sql_data[$index][$value] = $tab_options['VALUE_DEFAULT'][$key];
                                } else {
                                    $sql_data[$index][$value] = $tab_options['VALUE'][$key][$champs_index];
                                }
                            }
                        }
                    }
                    //ajout des valeurs statiques
                    foreach ($list_fields as $key => $value) {
                        if ($tab_options['VALUE'][$key]) {
                            if ($tab_options['VALUE'][$key][$champs_index] == "" and isset($tab_options['VALUE_DEFAULT'][$key])) {
                                $sql_data_cache[$index][$value] = $tab_options['VALUE_DEFAULT'][$key];
                            } else {
                                $sql_data_cache[$index][$value] = $tab_options['VALUE'][$key][$champs_index];
                            }
                        }
                    }
                }
                $index++;
            }
            $i++;
        }
        //		if ($i == 1){
        //			$num_rows_result=1;
        //			$_SESSION['OCS']['NUM_ROW'][$table_name]=1;
        //		}
        flush();
        //traitement du tri des r�sultats sur une valeur fixe
        if (isset($list_id_tri_fixe)) {
            $i = 0;
            //parcourt des id tri�s
            while ($list_id_tri_fixe[$i]) {
                if ($limit["BEGIN"] <= $i and $i < $limit["BEGIN"] + $limit_result_cache) {
                    $sql_data_tri_fixe[$i] = $sql_data[$list_id_tri_fixe[$i]];
                }
                $i++;
            }
            unset($sql_data);
            $sql_data = $sql_data_tri_fixe;
        }
        //	print_r($sql_data_cache);
        //on vide le cache des autres tableaux
        //pour optimiser la place dispo sur le serveur
        unset($_SESSION['OCS']['DATA_CACHE']);
        if (!$force_no_cache) {
            $_SESSION['OCS']['DATA_CACHE'][$table_name] = $sql_data_cache;
        }
        $result_data = gestion_donnees($sql_data, $list_fields, $tab_options, $form_name, $default_fields, $list_col_cant_del, $queryDetails, $table_name);
        $data = $result_data['DATA'];
        $entete = $result_data['ENTETE'];
        $correct_list_col_cant_del = $result_data['correct_list_col_cant_del'];
        $correct_list_fields = $result_data['correct_list_fields'];
    }
    if ($num_rows_result > 0) {
        if (count($data) == 1 and (!isset($protectedPost['page']) or $protectedPost['page'] == 0)) {
            $num_rows_result = 1;
        }
        $title = $num_rows_result . " " . $l->g(90);
        if (isset($tab_options['LOGS'])) {
            addLog($tab_options['LOGS'], $num_rows_result . " " . $l->g(90));
        }
        if (!isset($tab_options['no_download_result'])) {
            $title .= "<a href='index.php?" . PAG_INDEX . "=" . $pages_refs['ms_csv'] . "&no_header=1&tablename=" . $table_name . "&base=" . $tab_options['BASE'] . "'><small> (" . $l->g(183) . ")</small></a>";
        }
        $result_with_col = gestion_col($entete, $data, $correct_list_col_cant_del, $form_name, $table_name, $list_fields, $correct_list_fields, $form_name);
        $no_result = tab_entete_fixe($result_with_col['entete'], $result_with_col['data'], $title, $width, "", array(), $tab_options);
        if ($no_result) {
            show_page($num_rows_result, $form_name);
            echo "<input type='hidden' id='tri_" . $table_name . "' name='tri_" . $table_name . "' value='" . $protectedPost['tri_' . $table_name] . "'>";
            echo "<input type='hidden' id='tri_fixe' name='tri_fixe' value='" . $protectedPost['tri_fixe'] . "'>";
            echo "<input type='hidden' id='sens_" . $table_name . "' name='sens_" . $table_name . "' value='" . $protectedPost['sens_' . $table_name] . "'>";
            echo "<input type='hidden' id='SUP_PROF' name='SUP_PROF' value=''>";
            echo "<input type='hidden' id='MODIF' name='MODIF' value=''>";
            echo "<input type='hidden' id='SELECT' name='SELECT' value=''>";
            echo "<input type='hidden' id='OTHER' name='OTHER' value=''>";
            echo "<input type='hidden' id='ACTIVE' name='ACTIVE' value=''>";
            echo "<input type='hidden' id='CONFIRM_CHECK' name='CONFIRM_CHECK' value=''>";
            echo "<input type='hidden' id='OTHER_BIS' name='OTHER_BIS' value=''>";
            echo "<input type='hidden' id='OTHER_TER' name='OTHER_TER' value=''>";
            return TRUE;
        } else {
            return FALSE;
        }
    } else {
        echo "</td></tr></table>";
        msg_warning($l->g(766));
        return FALSE;
    }
}
开发者ID:inkoss,项目名称:karoshi-server,代码行数:101,代码来源:function_table_html.php

示例15: js_tooltip

    }
    //Error are detected
    if ($msg_header_error != array()) {
        js_tooltip();
        $msg_tooltip = '';
        foreach ($msg_header_error as $poub => $values) {
            if (isset($msg_header_error_sol[$poub])) {
                $tooltip = tooltip($msg_header_error_sol[$poub]);
                $msg_tooltip .= "<div " . $tooltip . ">" . $values . "</div>";
            }
        }
        msg_error("<big>" . $l->g(1263) . "</big><br>" . $msg_tooltip, "top_msg_alert");
    }
    //warning are detected
    if ($msg_header_warning != array()) {
        msg_warning(implode('<br>', $msg_header_warning), "top_msg_warning");
    }
}
if (isset($_SESSION['OCS']['TRUE_USER'])) {
    msg_info($_SESSION['OCS']['TRUE_USER'] . " " . $l->g(889) . " " . $_SESSION['OCS']["loggeduser"]);
}
if (isset($_SESSION['OCS']["TRUE_mesmachines"])) {
    msg_info($l->g(890));
}
echo "</td></tr></table></td></tr>";
if (!isset($_SESSION['OCS']["loggeduser"])) {
    echo "<tr><td colspan=20 align=right>";
    require_once 'plugins/language/language.php';
    echo "</td></tr>";
}
echo "</table>";
开发者ID:remicollet,项目名称:OCSInventory-ocsreports,代码行数:31,代码来源:html_header.php


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