本文整理汇总了PHP中Line::makeURL方法的典型用法代码示例。如果您正苦于以下问题:PHP Line::makeURL方法的具体用法?PHP Line::makeURL怎么用?PHP Line::makeURL使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Line
的用法示例。
在下文中一共展示了Line::makeURL方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
$tmpl->set('title', 'Delete Line');
$tmpl->place('header');
?>
<form action="<?php
echo Line::makeURL('delete', $line);
?>
" method="post">
<div class="main" id="main">
<div class="warning">Are you sure you want to delete this line?
<strong><?php
echo $graph->prepareName();
?>
</strong>?
</div>
<div class="actions">
<input class="btn danger" type="submit" value="Yes, delete this line" />
<a class="btn" href="<?php
echo Graph::makeURL('edit', $graph);
?>
">No, please keep it</a>
<input type="hidden" name="token" value="<?php
echo fRequest::generateCSRFToken();
?>
" />
</div>
</div>
</form>
<?php
示例2: catch
?>
</tr>
<?php
$index++;
}
?>
</tbody></table>
<?php
if ($number_of_lines > 1) {
?>
<p class="text-info"><em>* You can also use "drag and drop" to reorder the lines.</em></p>
<?php
}
?>
<?php
} catch (fEmptySetException $e) {
?>
<p class="info">There are currently no Tattle lines available for this graph . <a href="<?php
echo Line::makeURL('add', $graph);
?>
">Add one now</a></p>
<?php
}
}
?>
</div>
</div>
</div>
</div>
<?php
$tmpl->place('footer');
示例3: catch
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
$first = TRUE;
foreach ($lines as $line) {
?>
<tr>
<td><?=$line->prepareAlias(); ?></td>
<td><?=$line->prepareTarget(); ?></td>
<td><?=$line->prepareColor(); ?></td>
<td><a href="<?=Line::makeURL('edit', $line); ?>">Edit</a> |
<a href="<?=Line::makeURL('delete', $line); ?>">Delete</a></td>
</tr>
<?php } ?>
</tbody></table>
<?
} catch (fEmptySetException $e) {
?>
<p class="info">There are currently no Tattle lines available for this graph . <a href="<?=Line::makeURL('add',$graph); ?>">Add one now</a></p>
<?php
} }
?>
</div>
</div>
</div>
</div>
<?php
$tmpl->place('footer');