當前位置: 首頁>>代碼示例>>PHP>>正文


PHP te函數代碼示例

本文整理匯總了PHP中te函數的典型用法代碼示例。如果您正苦於以下問題:PHP te函數的具體用法?PHP te怎麽用?PHP te使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了te函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: te

?>
</th><th><?php 
te("Buyer");
?>
</th><th><?php 
te("Date");
?>
</th>
     <th><?php 
te("Order No");
?>
</th><th><?php 
te("Description");
?>
</th><th><?php 
te("Associated Files");
?>
</th></tr>
</thead>
<tbody>
<?php 
$i = 0;
/// print actions list
while ($r = $sth->fetch(PDO::FETCH_ASSOC)) {
    $i++;
    $f = invid2files($r['id'], $dbh);
    //create file links
    $flnk = "";
    for ($lnk = "", $c = 0; $c < count($f); $c++) {
        $fname = $f[$c]['fname'];
        $fid = $f[$c]['id'];
開發者ID:MichaelGreenNZ,項目名稱:itdb,代碼行數:31,代碼來源:listinvoices.php

示例2: te

}
?>
                </select>
            </td>
        </tr>
        <tr>
            <th><?php 
te('LABEL_DAYLIGHT_SAVING');
?>
:</th>
            <td>
                <input type="checkbox" name="enable_daylight_saving" <?php 
echo $config['enable_daylight_saving'] ? 'checked' : '';
?>
><?php 
te('TEXT_OBSERVE_DAYLIGHT_SAVINGS');
?>
            </td>
        </tr>
    </table>
   
    <table width="100%" border="0" cellspacing=0 cellpadding=2 class="tform">
        <tr class="header"><td colspan=2>Ticket Options &amp; Settings</td></tr>
        <tr class="subheader"><td colspan=2>If enabled ticket lock get auto-renewed on form activity.</td></tr>
        <tr><th valign="top">Ticket IDs:</th>
            <td>
                <input type="radio" name="random_ticket_ids"  value="0"   <?php 
echo !$config['random_ticket_ids'] ? 'checked' : '';
?>
 /> Sequential
                <input type="radio" name="random_ticket_ids"  value="1"   <?php 
開發者ID:iHunt101,項目名稱:OsTicket,代碼行數:31,代碼來源:preference.inc.php

示例3: te

?>
<sup>*</sup></th>
  <th><?php 
te("Depth");
?>
</th>
  <th><?php 
te("Location");
?>
</th>
  <th><?php 
te("Area/Room");
?>
</th>
  <th><?php 
te("Label");
?>
</th>
</tr>
</thead>
<tbody>

<?php 
$i = 0;
/// print actions list
while ($r = $sth->fetch(PDO::FETCH_ASSOC)) {
    $i++;
    $occupation = (int) $r['occupation'];
    echo "\n<tr>";
    //echo "<td class='tdc' ><a href='$scriptname?action=viewrack&amp;id={$r['id']}'><img src='images/eye.png' width=20></a></td>\n";
    echo "<td><a class='editid' href='{$scriptname}?action=editrack&amp;id=" . $r['id'] . "'>{$r['id']}</a></td>\n";
開發者ID:MichaelGreenNZ,項目名稱:itdb,代碼行數:31,代碼來源:listracks.php

示例4: te

            ?>
					<option value="close" <?php 
            echo $info['do'] == 'close' ? 'selected' : '';
            ?>
><?php 
            te('LABEL_STAFF_VIEWTICKET_CLOSE_TICKET');
            ?>
						</option>
						<?php 
        } else {
            ?>
					<option value="reopen" <?php 
            echo $info['do'] == 'reopen' ? 'selected' : '';
            ?>
><?php 
            te('LABEL_STAFF_VIEWTICKET_REOPEN_TICKET');
            ?>
						</option>
						<?php 
        }
    }
    ?>
						<?php 
    if ($thisuser->canManageBanList()) {
        if (!$emailBanned) {
            ?>
					<option value="banemail">
						Ban Email
						<?php 
            echo $ticket->isOpen() ? '&amp; Close' : '';
            ?>
開發者ID:iHunt101,項目名稱:OsTicket,代碼行數:31,代碼來源:viewticket.inc.php

示例5: te

</th><th><?php 
te("Supports<br>Software");
?>
<sup>1</sup></th></tr>
<tr><td colspan=1><?php 
te("New");
?>
:</td><td>
     <input name='newtype' type='text'></td>
     <td><select name='newhassoftware'>
     <option value='0'><?php 
te("No");
?>
</option>
     <option value='1'><?php 
te("Yes");
?>
</option></select></td>
     </tr>

<tr><td style='text-align: right' colspan=4><button type="submit"><img src="images/save.png" alt="Save" > Save</button></td></tr>
<tr><td style='text-align: left' colspan=4>
      <sup>1</sup><?php 
te("Select 'YES' if software can be installed <b>on</b> this item.<br> Only items supporting software are listed when <br>performing software - item associations");
?>
    </td></tr>
</tbody>
</table>

</form>
開發者ID:MichaelGreenNZ,項目名稱:itdb,代碼行數:30,代碼來源:edititypes.php

示例6: te

</button></td></tr>
<tr><td style='text-align: left' colspan=4> </td></tr>
</table>
</form>

</div>

<div style='text-align:left;float:left;margin-left:50px;min-width:350px;max-width:500px;min-height:300px;border:1px solid #fff;' 
     id='itemresults'><?php 
te("Click on Item count column on the left to display associated items");
?>
</div>

<div style='text-align:left;float:left;margin-left:50px;min-width:350px;max-width:500px;min-height:300px;border:1px solid #fff;' 
     id='softwareresults'><?php 
te("Click on Software count column on the left to display associated software");
?>
</div>

<script>
  $(document).ready(function(){    

    $(".showitems" ).click(function() {
      $("#itemresults").html('<center><img src="images/ajaxload.gif"></center>').load('php/tag2item_ajaxlist.php?tagid='+ $(this).attr('href'));
      return false;
    });

    $(".showsoftware" ).click(function() {
      $("#softwareresults").html('<center><img src="images/ajaxload.gif"></center>').load('php/tag2software_ajaxlist.php?tagid='+ $(this).attr('href'));
      return false;
    });
開發者ID:MichaelGreenNZ,項目名稱:itdb,代碼行數:31,代碼來源:edittags.php

示例7: te

<?php

/* Spiros Ioannou 2009 , sivann _at_ gmail.com */
require "../init.php";
if ($itemid == "new") {
    te("Cannot add log entries to unsaved items.");
    exit;
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >

<script>
function filltoday()
{
var mydate= new Date()
var theyear=mydate.getFullYear()
var themonth=mydate.getMonth()+1
var thetoday=mydate.getDate()

var x=document.getElementById('newdate').value;

  if (x.length==0) {
<?php 
if ($settings['dateformat'] == "ymd") {
    ?>
    document.getElementById('newdate').value=theyear+"-"+themonth+"-"+thetoday;
<?php 
} elseif ($settings['dateformat'] == "dmy") {
    ?>
開發者ID:MichaelGreenNZ,項目名稱:itdb,代碼行數:31,代碼來源:editactions.php

示例8: te

?>
</th>
  <th><?php 
te("Type");
?>
</th>
  <th style='min-width:300px'><?php 
te("Title");
?>
</th>
  <th><?php 
te("File");
?>
</th>
  <th><?php 
te("Associations");
?>
</th>
</tr>
</thead>
<tbody>
<?php 
$i = 0;
/// print actions list
while ($r = $sth->fetch(PDO::FETCH_ASSOC)) {
    $i++;
    $nlinks = countfileidlinks($r['id'], $dbh);
    $type = $r['typedesc'];
    if ($type == "invoice") {
        $type = "<span style='color:#0076A0'>{$type}</span>";
    }
開發者ID:MichaelGreenNZ,項目名稱:itdb,代碼行數:31,代碼來源:listfiles.php

示例9: te

?>
</th>
  <th width='20%' nowrap><?php 
te("Location Name/Building Name");
?>
</th>
  <th width='10%'><?php 
te("Floor");
?>
</th>
  <th width='40%'><?php 
te("Area Names/Offices");
?>
</th>
  <th><?php 
te("Floor Plan");
?>
</th>
</tr>
</thead>
<tbody>
<?php 
$i = 0;
/// print actions list
while ($r = $sth->fetch(PDO::FETCH_ASSOC)) {
    $i++;
    echo "\n<tr>";
    echo "<td><a class='editid' href='{$scriptname}?action=editlocation&amp;id=" . $r['id'] . "'>{$r['id']}</a></td>\n";
    echo "<td>{$r['name']}</td>\n";
    echo "<td>{$r['floor']}</td>\n";
    echo "<td>{$r['areaname']}</td>\n";
開發者ID:MichaelGreenNZ,項目名稱:itdb,代碼行數:31,代碼來源:listlocations.php

示例10: strto

 function strto($to, $str)
 {
     define('cs', 'utf-8');
     if (!function_exists('rp')) {
         function rp($i, $str)
         {
             $B = array('I', 'Ğ', 'Ü', 'Ş', 'İ', 'Ö', 'Ç');
             $k = array('ı', 'ğ', 'ü', 'ş', 'i', 'ö', 'ç');
             $Bi = array(' I', ' ı', ' İ', ' i');
             $ki = array(' I', ' I', ' İ', ' İ');
             if ($i == 1) {
                 return str_replace($B, $k, $str);
             } elseif ($i == 2) {
                 return str_replace($k, $B, $str);
             } elseif ($i == 3) {
                 return str_replace($Bi, $ki, $str);
             }
         }
     }
     if (!function_exists('cf')) {
         function cf($c = array(), $str)
         {
             foreach ($c as $cc) {
                 $s = explode($cc, $str);
                 foreach ($s as $k => $ss) {
                     $s[$k] = strto('ucfirst', $ss);
                 }
                 $str = implode($cc, $s);
             }
             return $str;
         }
     }
     if (!function_exists('te')) {
         function te()
         {
             return trigger_error('Lütfen geçerli bir strto() parametresi giriniz.', E_USER_ERROR);
         }
     }
     $to = explode('|', $to);
     if ($to) {
         foreach ($to as $t) {
             if ($t == 'lower') {
                 $str = mb_strtolower(rp(1, $str), cs);
             } elseif ($t == 'upper') {
                 $str = mb_strtoupper(rp(2, $str), cs);
             } elseif ($t == 'ucfirst') {
                 $str = mb_strtoupper(rp(2, mb_substr($str, 0, 1, cs)), cs) . mb_substr($str, 1, mb_strlen($str, cs) - 1, cs);
             } elseif ($t == 'ucwords') {
                 $str = ltrim(mb_convert_case(rp(3, ' ' . $str), MB_CASE_TITLE, cs));
             } elseif ($t == 'capitalizefirst') {
                 $str = cf(array('. ', '.', '? ', '?', '! ', '!', ': ', ':'), $str);
             } else {
                 $str = te();
             }
         }
     } else {
         $str = te();
     }
     return $str;
 }
開發者ID:antalyaweb,項目名稱:istakip,代碼行數:60,代碼來源:class.core.php

示例11: te

  <input type=hidden name="table" value="contractevents">
  <input type=hidden name="contractid" value="<?php 
echo $id;
?>
">
  <input type=submit>
 </form>
</div>


<div id="ev_deldialog" title="Delete Event" method="post" style='display:none'>
 <form name="evtdelfrm" method="post" id="evtdelfrm" action="php/contractevents.php">
  <b><?php 
te("Delete Event?");
?>
<br></b>
  <input type=text name='deleventid' value='new' readonly>
  <input type=hidden name="contractid" value="<?php 
echo $id;
?>
">
  <input type=submit value='<?php 
te("Delete");
?>
'>
 </form>
</div>


開發者ID:MichaelGreenNZ,項目名稱:itdb,代碼行數:27,代碼來源:editcontract.php

示例12: te

</ul>
<input type=hidden name='action' value='<?php 
echo $action;
?>
'>
</form>
</td></tr>
</table>

<?php 
echo "\n<form id='mainform' method=post  action='{$scriptname}?action={$action}' enctype='multipart/form-data'  name='transfrm'>\n";
?>

<table class="tbl2" >
<tr><td class="tdt"><?php 
te("Language");
?>
</td><td>
<select  id='langsel' name='lang'>
  <?php 
if ($lang == "en") {
    $s = "SELECTED";
} else {
    $s = "";
}
?>
  <option <?php 
echo $s;
?>
 value=''>en</option>
  <?php 
開發者ID:MichaelGreenNZ,項目名稱:itdb,代碼行數:31,代碼來源:translations.php

示例13: installation

</script>

<?php 
if (!isset($_POST['update'])) {
    ?>
  <div id=messagetxt style='margin-left:auto;margin-right:auto;width:800px;'>
    <div style='background-color:#eee;border:1px solid #aaa;padding:5px;'>
    <?php 
    if ($fordbversion < dbversion()) {
        echo "It seems that you have replaced the ITDB installation with an older version, but  not the the database  which is newer version than the software. This will probably lead to data corruption. Please update ITDB files to the newest version<br>\n";
    } else {
        ?>
    You have updated your ITDB installation (files). To complete the upgrade, database to the same version.<br>
    Please take a backup of your database if you haven't done so yet right now, by downloading the file: 
      <a style='font-size:12px;' title='<?php 
        te("Download DataBase file. Contains all data except uploaded files/documents");
        ?>
' href='getdb.php'>
      <img src='images/database_save.png'> Download Database (SQLite)</a><br>
      When finished, click <button id='updtbtn' type=submit>update</button> to update the database to the latest version.
      <br>
    </div>

  <div style='background-color:#fee;margin-top:10px;border:1px solid #aaa;padding:5px;' >
  <?php 
        echo "Database version=" . dbversion() . "<br>";
        echo "Installation version={$fordbversion}";
        echo "</div>";
        echo "</div>";
    }
} else {
開發者ID:MichaelGreenNZ,項目名稱:itdb,代碼行數:31,代碼來源:itdbupdate.php

示例14: date

        $iid = $ri[$i]['id'];
        $idate = date($dateparam, $ri[$i]['id']);
        for ($flnk = "", $c = 0; $c < count($f); $c++) {
            $fname = $f[$c]['fname'];
            $ftitle = $f[$c]['title'];
            $flnk .= " <a target=_blank title='View FILE: {$ftitle} {$fname}' href='" . $uploaddirwww . $fname . "'><img src='images/down.png'></a>";
        }
        $invinfo .= "<div style='min-width:70px;'><a title='Edit INVOICE' href='{$scriptname}?action=editinvoice&amp;id={$iid}'><div class='editid'>{$iid}</div><div>{$flnk}</div></a></div>";
        $flnk = "";
    }
    //if (!($row%2)) $s=" class='dark' "; else $s="";
    ?>

  <tr>
  <td><div class='editid'><a title='<?php 
    te("Edit Software");
    ?>
' href='<?php 
    echo $scriptname;
    ?>
?action=editsoftware&amp;id=<?php 
    echo $r['id'];
    ?>
'><?php 
    echo $id;
    ?>
</a></div>
  </td>

<?php 
    if ($licqty < $licitems) {
開發者ID:MichaelGreenNZ,項目名稱:itdb,代碼行數:31,代碼來源:listsoftware.php

示例15: te

?>
</th>
  <th width='5%'><?php 
te("Username");
?>
</th>
  <th><?php 
te("User Description");
?>
</th>
  <th><?php 
te("Type");
?>
</th>
  <th width='5%'><?php 
te("Items");
?>
</th>
</tr>
</thead>
<tbody>

<?php 
$usertype[0] = t("Full Access");
$usertype[1] = t("Read Only");
$usertype[2] = t("copied from LDAP (read only)");
$i = 0;
while ($r = $sth->fetch(PDO::FETCH_ASSOC)) {
    $i++;
    $itemcount = countitemsofuser($r['id']);
    echo "\n<tr>";
開發者ID:MichaelGreenNZ,項目名稱:itdb,代碼行數:31,代碼來源:listusers.php


注:本文中的te函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。