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


PHP uppercase函数代码示例

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


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

示例1: login

 function login($login, $pass)
 {
     global $messa;
     $login = uppercase($login);
     if (strlen($login) == 0 or strlen($pass) == 0) {
         $this->user_erro = -3;
         $this->user_msg = 'login_required';
         return -3;
     } else {
         $login = troca($login, "'", "´");
         $pass = troca($pass, "'", "´");
         $sql = "select * from " . $this->usuario_tabela;
         $sql .= " where " . $this->usuario_tabela_email . " = '" . LowerCase($login) . "' ";
         $resrlt = db_query($sql);
         if ($result = db_read($resrlt)) {
             $user_senha = trim($result[$this->usuario_tabela_pass]);
             if ($result['senha_md5'] == 1) {
                 $pass = md5($pass);
             }
             if ($user_senha == $pass) {
                 $this->user_erro = 1;
                 $this->user_msg = '';
                 $this->user_login = trim($result[$this->usuario_tabela_login]);
                 $this->user_nome = trim($result[$this->usuario_tabela_nome]);
                 $this->user_nivel = trim($result[$this->usuario_tabela_nivel]);
                 $this->user_id = trim($result[$this->usuario_tabela_id]);
                 $this->user_codigo = trim($result['us_codigo']);
                 $this->user_perfil = trim($result['us_perfil']);
                 $this->LiberarUsuario();
             } else {
                 $this->user_erro = -2;
                 $this->user_msg = 'password_incorrect';
             }
         } else {
             $this->user_erro = -1;
             $this->user_msg = 'login_invalid';
         }
     }
     if ($this->user_erro == 1) {
         $this->LiberarUsuario();
         return True;
     } else {
         return False;
     }
 }
开发者ID:bireme,项目名称:proethos,代码行数:45,代码来源:_security_v2.php

示例2: uppercase

 * @copyright © Pan American Health Organization, 2013. All rights reserved.
 * @access public
 * @version v0.11.29
 * @package index
 * @subpackage ged
 */
$include = '../';
require "db.php";
require '_class/_class_message.php';
/* Mensagens */
$tabela = 'ged_upload';
$link_msg = '../messages/msg_' . $tabela . '.php';
if (file_exists($link_msg)) {
    require $link_msg;
}
$id = $dd[0];
$secu = uppercase($secu);
$chk1 = checkpost($id . $secu);
$secu = '';
$chk2 = checkpost($id);
$secu = $dd[91];
$chk1 = checkpost($id . $secu);
if ($dd[90] == $chk1 or $dd[90] == $chk2) {
    require "_ged_config.php";
    if (strlen($dd[50]) > 0) {
        $ged->tabela = $dd[50];
    }
    echo $ged->download($id);
} else {
    echo msg('erro_post');
}
开发者ID:bireme,项目名称:proethos,代码行数:31,代码来源:ged_download.php

示例3: frame3

function frame3()
{
    global $islinux, $cmd_arg, $chmod_arg, $zip_dir, $fm_current_root, $cookie_cache_time;
    global $dir_dest, $current_dir, $dir_before;
    global $selected_file_list, $selected_dir_list, $old_name, $new_name;
    global $action, $or_by, $order_dir_list_by;
    if (!isset($order_dir_list_by)) {
        $order_dir_list_by = "1A";
        setcookie("order_dir_list_by", $order_dir_list_by, time() + $cookie_cache_time, "/");
    } elseif (strlen($or_by)) {
        $order_dir_list_by = $or_by;
        setcookie("order_dir_list_by", $or_by, time() + $cookie_cache_time, "/");
    }
    html_header();
    echo "<body>\n";
    if ($action) {
        switch ($action) {
            case 1:
                // create dir
                if (strlen($cmd_arg)) {
                    $cmd_arg = format_path($current_dir . $cmd_arg);
                    if (!file_exists($cmd_arg)) {
                        @mkdir($cmd_arg, 0755);
                        @chmod($cmd_arg, 0755);
                        reloadframe("parent", 2, "&ec_dir=" . $cmd_arg);
                    } else {
                        alert(et('FileDirExists') . ".");
                    }
                }
                break;
            case 2:
                // create arq
                if (strlen($cmd_arg)) {
                    $cmd_arg = $current_dir . $cmd_arg;
                    if (!file_exists($cmd_arg)) {
                        if ($fh = @fopen($cmd_arg, "w")) {
                            @fclose($fh);
                        }
                        @chmod($cmd_arg, 0644);
                    } else {
                        alert(et('FileDirExists') . ".");
                    }
                }
                break;
            case 3:
                // rename arq ou dir
                if (strlen($old_name) && strlen($new_name)) {
                    rename($current_dir . $old_name, $current_dir . $new_name);
                    if (is_dir($current_dir . $new_name)) {
                        reloadframe("parent", 2);
                    }
                }
                break;
            case 4:
                // delete sel
                if (strstr($current_dir, $fm_current_root)) {
                    if (strlen($selected_file_list)) {
                        $selected_file_list = explode("<|*|>", $selected_file_list);
                        if (count($selected_file_list)) {
                            for ($x = 0; $x < count($selected_file_list); $x++) {
                                $selected_file_list[$x] = trim($selected_file_list[$x]);
                                if (strlen($selected_file_list[$x])) {
                                    total_delete($current_dir . $selected_file_list[$x], $dir_dest . $selected_file_list[$x]);
                                }
                            }
                        }
                    }
                    if (strlen($selected_dir_list)) {
                        $selected_dir_list = explode("<|*|>", $selected_dir_list);
                        if (count($selected_dir_list)) {
                            for ($x = 0; $x < count($selected_dir_list); $x++) {
                                $selected_dir_list[$x] = trim($selected_dir_list[$x]);
                                if (strlen($selected_dir_list[$x])) {
                                    total_delete($current_dir . $selected_dir_list[$x], $dir_dest . $selected_dir_list[$x]);
                                }
                            }
                            reloadframe("parent", 2);
                        }
                    }
                }
                break;
            case 5:
                // copy sel
                if (strlen($dir_dest)) {
                    if (uppercase($dir_dest) != uppercase($current_dir)) {
                        if (strlen($selected_file_list)) {
                            $selected_file_list = explode("<|*|>", $selected_file_list);
                            if (count($selected_file_list)) {
                                for ($x = 0; $x < count($selected_file_list); $x++) {
                                    $selected_file_list[$x] = trim($selected_file_list[$x]);
                                    if (strlen($selected_file_list[$x])) {
                                        total_copy($current_dir . $selected_file_list[$x], $dir_dest . $selected_file_list[$x]);
                                    }
                                }
                            }
                        }
                        if (strlen($selected_dir_list)) {
                            $selected_dir_list = explode("<|*|>", $selected_dir_list);
                            if (count($selected_dir_list)) {
                                for ($x = 0; $x < count($selected_dir_list); $x++) {
//.........这里部分代码省略.........
开发者ID:Kavir91,项目名称:Convocatoria,代码行数:101,代码来源:index.php

示例4: ksort

    if (count($filterArray) != 0) {
        ksort($filterArray);
        foreach ($filterArray as $type => $value) {
            $sel = false;
            # check for filter querystring
            if (isset($_GET['type']) && $_GET['type'] == $type) {
                $sel = true;
            }
            if (isset($_GET['type']) && $_GET['type'] == 'images' && $type == 'image') {
                $sel = true;
            }
            // alias for image (images)
            if (count($filterArray) == 1 && isset($filterArray['image'])) {
                $sel = true;
            }
            echo '<option value="' . $type . '" ' . ($sel ? 'selected' : '') . '>' . i18n_r('FTYPE_' . uppercase($type)) . '</option>';
        }
    }
}
echo '</select>';
exec_action(get_filename_id() . '-edit-nav');
echo "</div>";
exec_action(get_filename_id() . '-body');
$pathParts = explode("/", $subPath);
$urlPath = null;
// preserve querystring, but remove path
$root = 'upload.php?' . merge_queryString(array('path' => null));
echo '<div class="h5 clearfix"><div class="crumbs">/ <a href="' . $root . '">' . i18n_r('FILES') . '</a> / ';
foreach ($pathParts as $pathPart) {
    if ($pathPart != '') {
        $urlPath .= $pathPart . '/';
开发者ID:HelgeSverre,项目名称:GetSimpleCMS,代码行数:31,代码来源:upload.php

示例5: explode

<?php 
$tabs = explode(',', getDef('GSTABS'));
// $tabs  = array_keys($sidemenudefinition); // debug all
$current = get_filename_id();
// if current tab is not in GSTABS, then set its parent tab as current
if (!in_array($current, $tabs)) {
    if (isset($sidemenudefinition[$current]) && !empty($sidemenudefinition[$current])) {
        $current = $sidemenudefinition[$current];
    }
}
if ($tabs) {
    foreach ($tabs as $tab) {
        if (empty($tab)) {
            continue;
        }
        $tabtitle = i18n_r('TAB_' . uppercase($tab));
        $class = $tab == $current ? ' current' : '';
        echo '<li id="nav_' . $tab . '" ><a class="' . $tab . $class . '" href="' . $tab . '.php" accesskey="' . find_accesskey($tabtitle) . '" >' . $tabtitle . '</a></li>';
    }
}
exec_action('nav-tab');
// @hook nav-tab backend after navigation tab list html output
?>

	<li id="nav_loaderimg" ><img class="toggle" id="loader" src="template/images/ajax.gif" alt="" /></li>

	<li class="rightnav" ><a class="settings first" href="settings.php" accesskey="<?php 
echo find_accesskey(i18n_r('TAB_SETTINGS'));
?>
" ><?php 
i18n('TAB_SETTINGS');
开发者ID:kix23,项目名称:GetSimpleCMS,代码行数:31,代码来源:include-nav.php

示例6: uppercase

<html>
<?php 
if (isset($_GET['sentence'])) {
    $string = $_GET['sentence'];
    $result = uppercase($string);
    echo $result;
}
function uppercase($string)
{
    $length = strlen($string);
    $up = "";
    for ($i = 0; $i < $length; $i++) {
        if (ord($string[$i]) >= 97 && ord($string[$i]) <= 122) {
            $str = chr(ord($string[$i]) - ord('a') + ord('A'));
        } else {
            $str = $string[$i];
        }
        $up .= $str;
    }
    return $up;
}
?>

	<body>
		<form action = "uppercasefunction.php" method="get">
			Given string:<input type="text" name="sentence"/>
		<br>
		<button type="submit">click here</button>
	
		</form>
	</body>
开发者ID:polycste,项目名称:my_function,代码行数:31,代码来源:uppercasefunction.php

示例7: uppercase

        echo $dc_date;
        ?>
</i> at <i><?php 
        echo $dc_time;
        ?>
</i> and after the Poll, these should be returned to collecting centre at <i><?php 
        echo $rcvenue;
        ?>
</i>.</td>
            </tr>
            <tr>
            	<td class='spacer' colspan='3'>&nbsp;</td>
            </tr>
            <tr>
            	<td colspan='2' valign='middle' align='left'>Place : <?php 
        print uppercase($_SESSION['dist_name']);
        ?>
<br />
                				Date : <?php 
        print date('d/m/Y');
        ?>
</td>
                <td align='center' valign='top'>Signature<br /><img src=<?php 
        print "../images/deo/{$_SESSION['signature']}";
        ?>
 alt='' height='50px' width='100px' /><br />
                (__________________)<br />District Election Officer<br /><?php 
        print wordcase($_SESSION['dist_name']);
        ?>
 District</td>
            </tr>
开发者ID:MUN06,项目名称:Lok-Sabha-Election-16th,代码行数:31,代码来源:2nd-app-letter2.php

示例8: getEditorAttribCallout

/**
 * get editor attributes for textareas
 * If func name not provided , we will attempt to get a function name from 'GS'.uppercase($collectionid).'ATTRIB'
 * eg. GSSNIPPETSATTRIB which it will execute and use for inserting into the textarea
 * @param  str $collectionid id for this kind of editor
 * @param  string $class        extra classes
 * @param  str $funcname     function name to call to get attributes
 * @return str               html fragment
 */
function getEditorAttribCallout($collectionid, $class = '', $funcname = null)
{
    if (!$funcname) {
        $call = getDef('GS' . uppercase($collectionid) . 'ATTRIB');
    } else {
        $call = $funcname;
    }
    if (function_exists($call)) {
        return $call($class);
    }
}
开发者ID:kix23,项目名称:GetSimpleCMS,代码行数:20,代码来源:template_functions.php

示例9: uppercase

$postnaam = "";
$postbeschrijving = "";
$postcat = "";
// post is gedaan
if (isset($_POST["Toevoegen"]) || isset($_POST["Terug"])) {
    if (!isset($_POST["Naam"]) || $_POST["Naam"] == "" || !is_numeric($_POST["categorie"])) {
        // check naam is leeg
        $Naamerror = "Er moet een naam worden ingevuld.";
    } else {
        // check naam al bestaad
        $invoerDatabase[] = uppercase($_POST["Naam"]);
        $uitvoerDatabase = query("SELECT Subcategorie_naam FROM subcategorie WHERE Subcategorie_naam = ?", $invoerDatabase);
        if (count($uitvoerDatabase) === 0) {
            // subcat bestaat nog niet dus invoeren
            $toevoegenSubcategorie[] = uppercase($_POST["Naam"]);
            $toevoegenSubcategorie[] = uppercase($_POST["Beschrijving"]);
            $toevoegenSubcategorie[] = $_POST["categorie"];
            query("INSERT INTO subcategorie (Subcategorie_naam, Beschrijving, CategorieID) VALUES (?, ?, ?)", $toevoegenSubcategorie);
            $saved = true;
        } else {
            // bestaat al
            $errorMessage = "Toevoegen subcategorie is mislukt, subcategorie bestaat al.";
        }
    }
    $postnaam = $_POST["Naam"];
    $postbeschrijving = $_POST["Beschrijving"];
    $postcat = $_POST["categorie"];
}
// terug naar overzicht
if ($saved && isset($_POST["Terug"])) {
    header("location:subcategorieList.php?x=1");
开发者ID:sjoerdherxen,项目名称:KBS,代码行数:31,代码来源:addSubcategorie.php

示例10: treeNodeOptions

 /**
  * Snippet for displaying node default content options
  *
  * @param Node $node
  * @return string
  */
 public function treeNodeOptions(Node $node)
 {
     return $this->nodeOptions($node, '<div class="dropdown__info navigation-module__info" style="background-color:' . $node->getNodeType()->color . ';">' . uppercase($node->getNodeType()->label) . '</div>', false);
 }
开发者ID:NuclearCMS,项目名称:Nuclear,代码行数:10,代码来源:NodesHtmlBuilder.php

示例11: bind_all

<body oncontextmenu="return false;" onload="javascript: bind_all();">
<div width="100%" align="center">
<table cellpadding="2" cellspacing="0" border="0" width="100%">
<tr>
  <td align="center"><table width="1000px" class="table_blue">
  <tr><td align="center"><div width="50%" class="h2"><?php 
print isset($environment) ? $environment : "";
?>
</div></td>
</tr>
<tr><td align="center"><?php 
print uppercase($district);
?>
 DISTRICT</td></tr>
<tr><td align="center"><?php 
echo uppercase($subdiv_name) . " SUBDIVISION";
?>
</td></tr>
<tr><td align="center">EMPLOYEE DETAILS ENTRY</td></tr>
<tr><td align="center"><form method="post" name="form1" id="form1" enctype="multipart/form-data">
  <table width="95%" class="form" cellpadding="0">
    <tr>
      <td align="center" colspan="4"><img src="images/blank.gif" alt="" height="1px" /></td>
    </tr>
    <tr>
      <td height="16px" colspan="4" align="center"><?php 
print isset($msg) ? $msg : "";
?>
<span id="msg" class="error"></span></td>
    </tr>
    <tr>
开发者ID:MUN06,项目名称:Lok-Sabha-Election-16th,代码行数:31,代码来源:add-personnel.php

示例12: navigationModuleOpen

 /**
  * Snippet for generating navigation menu openings
  *
  * @param string $icon
  * @param string $title
  * @return string
  */
 public function navigationModuleOpen($icon, $title)
 {
     return sprintf('<li class="navigation-module has-dropdown" data-hover="true">
         <i class="navigation-module__icon dropdown-icon %s"></i>
         <div class="dropdown navigation-module__dropdown">
             <div class="dropdown__info navigation-module__info">%s</div>
             <ul class="dropdown-sub navigation-module-sub">', $icon, uppercase(trans($title)));
 }
开发者ID:NuclearCMS,项目名称:Nuclear,代码行数:15,代码来源:NavigationHtmlBuilder.php

示例13: array

// update schilderij
if (isset($_POST["knop"])) {
    $correct = true;
    $schilderij = array();
    $schilderijUpdate = array();
    // validate inputs
    if (!isset($_POST["titel"]) || trim($_POST["titel"]) == "") {
        $titelError = "Titel is verplicht";
        $correct = false;
    }
    $schilderij["Titel"] = $_POST["titel"];
    $schilderijUpdate[] = uppercase($_POST["titel"]);
    $schilderij["OpWebsite"] = $_POST["OpWebsite"];
    $schilderijUpdate[] = $_POST["OpWebsite"] ? 1 : 0;
    $schilderij["Beschrijving"] = $_POST["beschrijving"];
    $schilderijUpdate[] = uppercase($_POST["beschrijving"]);
    $schilderij["lijst"] = isset($_POST["lijst"]);
    $schilderijUpdate[] = $schilderij["lijst"] ? 1 : 0;
    $schilderij["passepartout"] = isset($_POST["passepartout"]);
    $schilderijUpdate[] = $schilderij["passepartout"] ? 1 : 0;
    $schilderij["isStaand"] = $_POST["isStaand"] == "true";
    $schilderijUpdate[] = $schilderij["isStaand"] ? 1 : 0;
    if (!is_numeric($_POST["jaar"]) && isset($_POST["jaar"]) && trim($_POST["jaar"]) != "") {
        $jaarError = "Jaar is geen getal";
        $correct = false;
    }
    $schilderij["Jaar"] = $_POST["jaar"];
    $schilderijUpdate[] = $_POST["jaar"] == "" ? null : $_POST["jaar"];
    if (!is_numeric($_POST["prijs"]) && isset($_POST["prijs"]) && trim($_POST["prijs"]) != "") {
        $jaarError = "Prijs is geen getal";
        $correct = false;
开发者ID:sjoerdherxen,项目名称:KBS,代码行数:31,代码来源:editSchilderij.php

示例14: str_replace

     $correct = false;
 }
 if ($commentaar == "") {
     $commentaarleeg = "Commentaar is verplicht";
     $correct = false;
 }
 if ($correct) {
     $naamklant = str_replace("<", "&lt;", $_POST["naam"]);
     $naamklant = str_replace(">", "&gt;", $naamklant);
     $naamklant = uppercase($naamklant);
     $email = str_replace("<", "&lt;", $_POST["email"]);
     $email = str_replace(">", "&gt;", $email);
     $email = uppercase($naamklant);
     $commentaar = str_replace("<", "&lt;", $_POST["commentaar"]);
     $commentaar = str_replace(">", "&gt;", $commentaar);
     $commentaar = uppercase($commentaar);
     $input = array($naamklant, $email, $commentaar, $_GET["id"]);
     query("insert into commentaar (Naam_klant, Email_klant, Opmerking, Schilderij_ID) VALUES (?, ?, ?, ?)", $input);
     //mailen van het commentaar
     $to = query("SELECT email FROM schilder limit 0,1", NULL);
     $to = $to[0]['email'];
     $subject = "Commentaar op " . $schilderij['titel'];
     $message = "Naam afzender: " . $naamklant . "\nEmail-adres afzender: " . $email . "\nCommentaar op " . $schilderij['titel'] . ":\n " . $commentaar;
     $header = "From:commentaar@hofvanellen.nl \r\n";
     mail($to, $subject, $message, $header);
     ?>
     <script>
         alert("Commentaar is toegevoegd");
     </script>
     <?php 
 }
开发者ID:sjoerdherxen,项目名称:KBS,代码行数:31,代码来源:schilderij.php

示例15: uppercase

            </td>
        </tr>
        <tr>
            <td>
                Alle velden met een ster zijn verplicht
            </td>
        </tr>
    </table>
</form>

<?php 
// verwerken van formulier gegevens en naar database schrijven
if (isset($_POST["knopje"])) {
    if (isset($_POST["Subcategorie_Naam"]) && $_POST["Subcategorie_Naam"] !== "" && is_numeric($_POST["categorie"])) {
        $id = $_GET["id"];
        $invoerDatabase2 = [uppercase($_POST["Subcategorie_Naam"]), uppercase($_POST["BEschrijving"]), $_POST["categorie"], $_GET["id"]];
        query("UPDATE subcategorie SET Subcategorie_naam = ?, Beschrijving = ?, CategorieID = ? WHERE SubcategorieID = ?", $invoerDatabase2);
        header('location:subcategorieList.php#Wijzigingen zijn opgeslagen');
        exit;
    }
}
?>

<!-- script voor pop-up verwijderen -->
<script>
    document.getElementById("verwijderen").onclick = function () {
        if (confirm("Weet u zeker dat u deze subcategorie wilt verwijderen?")) {
            window.location = "deleteSubcategorie.php?id=<?php 
echo $id;
?>
";
开发者ID:sjoerdherxen,项目名称:KBS,代码行数:31,代码来源:editSubcategorie.php


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