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


PHP smarty_modifier_lang函數代碼示例

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


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

示例1: smarty_modifier_date2word

/**
 * Smarty date2word modifier plugin
 *
 * Input:<br>
 *         - string: input time difference as timestamp
 * @param string
 * @uses smarty_modifier_lang()
 */
function smarty_modifier_date2word($dif, $short = false)
{
    if ($dif) {
        $s = "";
        $years = intval($dif / (60 * 60 * 24 * 365));
        $dif = $dif - $years * (60 * 60 * 24 * 365);
        if ($years) {
            $s .= $years . "&nbsp;" . smarty_modifier_lang("_YEAR" . ($years > 1 ? "S" : "")) . "&nbsp;";
        }
        if ($years && $short) {
            return $s;
        }
        $months = intval($dif / (60 * 60 * 24 * 30));
        $dif = $dif - $months * (60 * 60 * 24 * 30);
        if ($months) {
            $s .= $months . "&nbsp;" . smarty_modifier_lang("_MONTH" . ($months > 1 ? "S" : "")) . "&nbsp;";
        }
        if ($months && $short) {
            return $s;
        }
        $weeks = intval($dif / (60 * 60 * 24 * 7));
        $dif = $dif - $weeks * (60 * 60 * 24 * 7);
        if ($weeks) {
            $s .= $weeks . "&nbsp;" . smarty_modifier_lang("_WEEK" . ($weeks > 1 ? "S" : "")) . "&nbsp;";
        }
        if ($weeks && $short) {
            return $s;
        }
        $days = intval($dif / (60 * 60 * 24));
        $dif = $dif - $days * (60 * 60 * 24);
        if ($days) {
            $s .= $days . "&nbsp;" . smarty_modifier_lang("_DAY" . ($days > 1 ? "S" : "")) . "&nbsp;";
        }
        if ($days && $short) {
            return $s;
        }
        $hours = intval($dif / (60 * 60));
        $dif = $dif - $hours * (60 * 60);
        if ($hours) {
            $s .= $hours . "&nbsp;" . smarty_modifier_lang("_HOUR" . ($hours > 1 ? "S" : "")) . "&nbsp;";
        }
        if ($hours && $short) {
            return $s;
        }
        $minutes = intval($dif / 60);
        $seconds = $dif - $minutes * 60;
        if ($minutes) {
            $s .= $minutes . "&nbsp;" . smarty_modifier_lang("_MIN" . ($minutes > 1 ? "S" : ""));
        }
        if ($minutes && $short) {
            return $s;
        }
        if ($short) {
            return $seconds . "&nbsp;" . smarty_modifier_lang("_SEC" . ($seconds > 1 ? "S" : ""));
        }
        return $s;
    } else {
        return;
    }
}
開發者ID:GoeGaming,項目名稱:bans.sevenelevenclan.org,代碼行數:68,代碼來源:modifier.date2word.php

示例2: smarty_function_cycle

        echo $this->_tpl_vars['logs']['ip'];
        ?>
</td>
            <td height='16' class='listtable_1'><?php 
        echo $this->_tpl_vars['logs']['action'];
        ?>
</td>
            <td height='16' class='listtable_1'><?php 
        echo $this->_tpl_vars['logs']['remarks'];
        ?>
</td>
          </tr>
          <?php 
    }
} else {
    ?>
          <tr  class="listtable_1-<?php 
    echo smarty_function_cycle(array('values' => "w,g"), $this);
    ?>
tr">
            <td height='16' colspan='6' class='listtable_1' align='center'><br><?php 
    echo is_array($_tmp = '_NOLOGFOUND') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
    ?>
<br><br></td>
          </tr>
          <?php 
}
unset($_from);
?>
 				</table>
 				
開發者ID:DmitriyS,項目名稱:gozm,代碼行數:30,代碼來源:%%DA^DAA^DAAC52E6%%log_search.tpl.php

示例3: is_array

</td>
						<td height='16' width='10%' class='listtable_1' align='right' colspan='2'><input type='hidden' name='submitted' value='true'><input type='submit' name='prune' value='<?php 
echo is_array($_tmp = '_PRUNEDB') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
?>
' style='font-family: verdana, tahoma, arial; font-size: 10px;' <?php 
if ($this->_tpl_vars['bans2prune'] == 0) {
    ?>
disabled<?php 
}
?>
></td>
          </tr>
          </form>
          <tr class="listtable_1-<?php 
echo smarty_function_cycle(array('values' => "w,g"), $this);
?>
tr">
          	<td height='16' width='100%' class='listtable_1' colspan='4'><br>

							<b><?php 
echo is_array($_tmp = '_WHATISPRUNING') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
?>
</b><br>
							<?php 
echo is_array($_tmp = '_PRUNINGINFO') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
?>

							<br><br>
          	</td>
          </tr>
        </table>
開發者ID:DmitriyS,項目名稱:gozm,代碼行數:31,代碼來源:%%38^383^383FAAA7%%prune_db.tpl.php

示例4: settype

        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        if (count($_from)) {
            foreach ($_from as $this->_tpl_vars['serverList']) {
                ?>
        <li><?php 
                echo $this->_tpl_vars['serverList']['full_name'];
                ?>
</li>
        <?php 
            }
        } else {
            ?>
        <li><font color="#666666"><?php 
            echo is_array($_tmp = 'NOT_SERVER_LIST') ? $this->_run_mod_handler('lang', true, $_tmp, 'Common') : smarty_modifier_lang($_tmp, 'Common');
            ?>
</font></li>
        <?php 
        }
        unset($_from);
        ?>
        </ul>
    </td>
  </tr>
  <?php 
    }
} else {
    ?>
  <tr>
    <th colspan="8"><?php 
開發者ID:huangwei2wei,項目名稱:kfxt,代碼行數:31,代碼來源:%%06^06C^06C6A225%%Index.html.php

示例5: unset

    }
}
unset($_from);
?>
											</td>
										</tr>
										<?php 
if ($this->_supers['session']['loggedin'] != true) {
    ?>
										<tr> 
											<td class="vtop fat"><?php 
    echo is_array($_tmp = '_SCODE') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
    ?>
</td> 
											<td><?php 
    echo is_array($_tmp = '_SCODEENTER') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
    ?>
<br>
												<img src="include/captcha.php" alt="Security code" style="border: 1px #000000 solid;"><br>
												<input type='text' size="30" name='verify' id="verify_code">
											</td> 
										</tr>
										<?php 
}
?>
									</tbody> 
								</table> 
							</form>
						</div>
					</form>
				</table>
開發者ID:GoeGaming,項目名稱:bans.sevenelevenclan.org,代碼行數:31,代碼來源:%%A5^A51^A5134B28%%layer_comadd.tpl.php

示例6: is_array

    ?>
"><img src="images/page_next.png" title="<?php 
    echo is_array($_tmp = '_NEXT_PAGE') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
    ?>
" alt="<?php 
    echo is_array($_tmp = '_NEXT_PAGE') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
    ?>
"></a>
        <?php 
}
?>
        <?php 
if ($this->_tpl_vars['pagenav']['last']) {
    ?>
            <a href="?site=<?php 
    echo $this->_tpl_vars['pagenav']['last'];
    ?>
"><img src="images/page_end.png" title="<?php 
    echo is_array($_tmp = '_LAST_PAGE') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
    ?>
" alt="<?php 
    echo is_array($_tmp = '_LAST_PAGE') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
    ?>
"></a>
        <?php 
}
?>
    </div>
    <div class="clearer"></div>
<!-- Pagenation -->  
</div>
開發者ID:GoeGaming,項目名稱:bans.sevenelevenclan.org,代碼行數:31,代碼來源:%%2C^2C8^2C830EC2%%ban_list.tpl.php

示例7: unset

							</tr>
		<?php 
    }
    unset($_from);
    ?>
						</tbody> 
					</table> 
				<div class="clearer">&nbsp;</div>
	</div>
		<?php 
    if ($this->_tpl_vars['vars']['comment_all'] == '1' || $this->_supers['session']['loggedin'] == 'true') {
        ?>
			<div class="post _center">
				<form method="post" action="">
					<input type="button" class="button" name="newcomment" value="<?php 
        echo is_array($_tmp = '_NEWCOMMENT') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
        ?>
" onclick="$('#add_comment').slideToggle('slow');"/><br/><br/>
				</form>
			</div>
			<div id="add_comment" class="post" style="display:none;">
				<tr id="comadd_<?php 
        echo $this->_tpl_vars['ban_detail']['bid'];
        ?>
" <?php 
        if ($this->_tpl_vars['comment_layer'] != '1') {
            ?>
style="display: none"<?php 
        }
        ?>
>
開發者ID:GoeGaming,項目名稱:bans.sevenelevenclan.org,代碼行數:31,代碼來源:%%85^853^85308946%%user_bd.tpl.php

示例8: is_array

							<td colspan="3"><b><?php 
    echo is_array($_tmp = '_BANDETAILSEDITS') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
    ?>
</b></td>
						</tr>
						<tr class="settings_line">
							<td width="1%"><b><?php 
    echo is_array($_tmp = '_DATE') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
    ?>
</b></td>
							<td width="1%"><b><?php 
    echo is_array($_tmp = '_ADMIN') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
    ?>
</b></td>
							<td><b><?php 
    echo is_array($_tmp = '_EDITREASON') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
    ?>
</b></td>
						</tr>
						<?php 
    $_from = $this->_tpl_vars['ban_details_edits'];
    if (!is_array($_from) && !is_object($_from)) {
        settype($_from, 'array');
    }
    if (count($_from)) {
        foreach ($_from as $this->_tpl_vars['ban_details_edits']) {
            ?>
						<tr class="settings_line">
							<td nowrap><?php 
            echo is_array($_tmp = $this->_tpl_vars['ban_details_edits']['edit_time']) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d. %b %Y - %T") : smarty_modifier_date_format($_tmp, "%d. %b %Y - %T");
            ?>
開發者ID:GoeGaming,項目名稱:bans.sevenelevenclan.org,代碼行數:31,代碼來源:%%4A^4A6^4A657AF0%%layer_banedit.tpl.php

示例9: is_array

    <td>
    	[<a href="<?php 
        echo $this->_tpl_vars['list']['url_edit'];
        ?>
"><?php 
        echo is_array($_tmp = '95B351C86267F3AEDF89520959BCE689') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
        ?>
</a>]
        [<a onclick="return confirm('<?php 
        echo is_array($_tmp = '187D1FE0248DC951304185D455EC5437') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
        ?>
?')" href="<?php 
        echo $this->_tpl_vars['list']['url_del'];
        ?>
"><?php 
        echo is_array($_tmp = '2F4AADDDE33C9B93C36FD2503F3D122B') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
        ?>
</a>]
    </td>
  </tr>
  <?php 
    }
} else {
    ?>
  <tr><th colspan="11"><?php 
    echo $this->_tpl_vars['noData'];
    ?>
</th></tr>
  <?php 
}
unset($_from);
開發者ID:huangwei2wei,項目名稱:kfxt,代碼行數:31,代碼來源:%%FA^FAB^FABB519E%%Default.html.php

示例10: is_array

</a></li>
			</ul>
		</div>
		<div id="menu_4" style="display: none;">
			<ul class="tabbed">
				<li><a href="admin.php?site=so_mo"><?php 
echo is_array($_tmp = '_MODULES') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
?>
</a></li>
				<li><a href="admin.php?site=so_up"><?php 
echo is_array($_tmp = '_MENUUPDATE') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
?>
</a></li>
				<li><a href="admin.php?site=so_lg"><?php 
echo is_array($_tmp = '_MENULOGS') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
?>
</a></li>
			</ul>
		</div>
		<div id="menu_5" style="display: none;">
			<ul class="tabbed">
				<li><a href="admin.php?modul=iexport"><?php 
echo is_array($_tmp = '_MENUIMPORTEXPORT') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
?>
</a></li>
			</ul>
		</div>
		<div class="clearer">&nbsp;</div>
	</div>
</div>
-->
開發者ID:GoeGaming,項目名稱:bans.sevenelevenclan.org,代碼行數:31,代碼來源:%%AC^AC1^AC1385FF%%admin_index.tpl.php

示例11: is_array

?>
</b></font> ';
							if(n.is_quality!=0){
								tmpStr+='<a qa_id="'+n.Id+'" href="javascript:void(0)" onclick="showQuality($(this))"><?php 
echo is_array($_tmp = '6FB49C8C71853B074DFF6030CE588C4C') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
?>
</a>&nbsp;';
							}else{
								tmpStr+='<font color="#999999">[<?php 
echo is_array($_tmp = '10C4744BCF74D883D9303E4111A17466') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
?>
]</font>&nbsp;';
							}
							
							tmpStr+=n.word_reply_name+'&nbsp;'+n.create_time+'&nbsp;<font style="font-weight:bold"><?php 
echo is_array($_tmp = '1EDFF073D48E05B9E79BB7516DA23A6E') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
?>
:</font><br />'+n.content+'</div>';

						}
					});
					curTd.parent().after("<tr style='background:#FFF' id='"+curTd.attr("dialogId")+"'><td colspan='8'>"+tmpStr+"</td></tr>");
				}
			}
		);
	});
	
	$(".order_title").click(function(){
		var id=$(this).attr("dialogId");
		$("#"+id).toggle();
	})
開發者ID:huangwei2wei,項目名稱:kfxt,代碼行數:31,代碼來源:%%95^95E^95E25D4B%%Index.js.html.php

示例12: is_array

?>
" value="<?php 
echo is_array($_tmp = '1EF84829E0071AC9EF3C9CB6ECA6DC58') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
?>
" /-->
        	<input type="button" class="btn-blue" onclick="formSubmit($(this))" url="<?php 
echo $this->_tpl_vars['url']['accept'];
?>
" value="<?php 
echo is_array($_tmp = 'CF13B1A67881F454AF469AA874F087E5') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
?>
" />
            <input type="button" class="btn-blue" onclick="formSubmit($(this))" url="<?php 
echo $this->_tpl_vars['url']['reject'];
?>
" value="<?php 
echo is_array($_tmp = '7173F80900EA2FF9FEC6568115611305') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
?>
" />
        </td>
      </tr>
      </form>
      <tr>
        <td colspan="9" align="right"><?php 
echo $this->_tpl_vars['pageBox'];
?>
</td>
      </tr>
    </table>
    
</fieldset>
開發者ID:huangwei2wei,項目名稱:kfxt,代碼行數:31,代碼來源:%%58^585^58595CB0%%Audit.html.php

示例13: is_array

    echo is_array($_tmp = 'A59C190B19758E577ADCAA244ED53706') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
    ?>
</th>
            <td> - <input type="text" class="text" name="asset" value="" /> <span id="assetInfo" style="color:#F00"></span></td>
          </tr>
          <tr>
            <th scope="row"><?php 
    echo is_array($_tmp = '22962E31B7F0C2B3BB7C4E7444C904B3') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
    ?>
</th>
            <td> - <input type="text" class="text" name="gold" value="" /> <span id="goldInfo" style="color:#F00"></span></td>
          </tr>
          <tr>
            <th scope="row"><?php 
    echo is_array($_tmp = 'C5E03794DA38DEC31D05CB002BF700BE') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
    ?>
</th>
            <td> - <input type="text" class="text" name="goldTicket" value="" /> <span id="goldTicketInfo" style="color:#F00"></span></td>
          </tr>
          <tr>
            <th scope="row">&nbsp;</th>
            <td><input type="submit" class="btn-blue" name="sbm" value="<?php 
    echo is_array($_tmp = '327094A9DDDF9E37726CAFACEB9A77B0') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
    ?>
" /></td>
          </tr>
        </table>
    </form>
</fieldset>
<?php 
}
開發者ID:huangwei2wei,項目名稱:kfxt,代碼行數:31,代碼來源:%%D5^D54^D5412250%%GongFu.html.php

示例14: is_array

    ?>
</th>
        <th scope="col"><?php 
    echo is_array($_tmp = '443A93F96B78C1CD21E01C7D7B522E8C') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
    ?>
</th>
        <th scope="col"><?php 
    echo is_array($_tmp = 'D865CD29E0FA9CF494F0CE3188C9F352') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
    ?>
</th>
        <th scope="col"><?php 
    echo is_array($_tmp = 'DA8ECE14F90D4772F089640AB0C4583D') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
    ?>
</th>
        <th scope="col"><?php 
    echo is_array($_tmp = '9FC2DF4C098C78C61164DA65C38957DC') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
    ?>
</th>
      </tr>
      <?php 
    $_from = $this->_tpl_vars['dataList'];
    if (!is_array($_from) && !is_object($_from)) {
        settype($_from, 'array');
    }
    if (count($_from)) {
        foreach ($_from as $this->_tpl_vars['list']) {
            ?>
      <tr>
        <td><?php 
            echo $this->_tpl_vars['list']['data_0'];
            ?>
開發者ID:huangwei2wei,項目名稱:kfxt,代碼行數:31,代碼來源:%%EF^EF6^EF615A3C%%ServerStats.html.php

示例15: smarty_function_cycle

}
?>
>[Game]Server_Infos (http://gsi.probal.fr/index_en.php)</option>
		

		</select>

		</td>
	</tr>

	<tr class="listtable_1-<?php 
echo smarty_function_cycle(array('values' => "w,g"), $this);
?>
tr">
		<td height='16' class='listtable_1' colspan='2' align='right'><input type='submit' name='dir' value='<?php 
echo is_array($_tmp = '_CHECKDIRS') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
?>
' style='font-family: verdana, tahoma, arial; font-size: 10px'> <input type='submit' name='db' value='<?php 
echo is_array($_tmp = '_CHECKCONNECT') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
?>
' style='font-family: verdana, tahoma, arial; font-size: 10px'> <input type='submit' name='action' value='<?php 
echo is_array($_tmp = '_APPLY') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
?>
' style='font-family: verdana, tahoma, arial; font-size: 10px' onclick="javascript:return confirm('<?php 
echo is_array($_tmp = '_SURETOSAVE') ? $this->_run_mod_handler('lang', true, $_tmp) : smarty_modifier_lang($_tmp);
?>
')"></td>
	</tr>
	</form>
</table>
開發者ID:DmitriyS,項目名稱:gozm,代碼行數:30,代碼來源:%%AA^AAA^AAA38218%%cfg.tpl.php


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