当前位置: 首页>>代码示例>>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;未经允许,请勿转载。