本文整理汇总了PHP中tool::encodeUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP tool::encodeUrl方法的具体用法?PHP tool::encodeUrl怎么用?PHP tool::encodeUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类tool
的用法示例。
在下文中一共展示了tool::encodeUrl方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: while
<form method="post" name="form3" action="taskdetails.php">
<input type="hidden" name="action" value="deleteattach">
<input type="hidden" name="id" value="">
<tr class="light">
<td><?php
echo $lang['common_attachment'];
?>
</td>
<td>
<table border="0" cellpadding="2" cellspacing="1" width="100%">
<?php
while ($a = current($taskInst->attachments)) {
$attachment = new attachment($a);
echo "<tr class=light>\n";
echo "<td><a href=\"" . tool::encodeUrl("fileget.php?created=" . $attachment->created . "&filename=" . $attachment->name) . "\" title=\"" . $lang['common_open'] . " " . $attachment->name . " " . $lang['common_inANewWindow'] . "\">" . $attachment->name . "</a></td>\n";
echo "<td>" . $attachment->getSize() . "</td>\n";
?>
<td align=right><a href="javascript:document.form3.id.value='<?php
echo $a;
?>
';document.form3.submit()"><img src="grafx/delete.gif" onClick="return Check();" width="16" height="15" border="0" title="<?php
echo $lang['tasks_deleteThisJob'];
?>
"></a></td><?php
next($taskInst->attachments);
echo "</tr>\n";
}
?>
</table>
</td>
示例2:
$paid += $curr;
break;
case false:
$notpaid += $curr;
break;
}
$totalsum += $curr;
?>
<tr class="<?php
echo $style;
?>
" onmouseover="this.style.backgroundColor='#fafafa'" onmouseout="this.style.backgroundColor=''">
<td>
<?php
echo "<a href=\"javascript:openwindow('" . tool::encodeUrl("index.php?content=projectdetails.php&view=details&projectid=" . $element) . "',width='500',height='500')\" title=\"show details for this project\">" . $projectInst->name . "</a>";
?>
</td>
<td align="right">
<?php
echo tool::formatCurrency($curr);
?>
</td>
<td align="center">
<?php
echo $projectInst->getStatusName();
?>
</td>
<td align="center">
<?php