【发布时间】:2014-01-20 19:31:29
【问题描述】:
我将一些 jquery 和 css 添加到 joomla 组件文件 view/edit/tmpl/default.php 中。我知道我需要使用 jdoc include,但是这样做的步骤是什么?我应该把 jdoc:包括?
代码是这样的。
<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$row = $this->row;
?>
<div class="componentheading" style="margin-bottom:10px;">Edit Event</div>
<form id="form" method="post" action="index.php?option=com_event&view=save" >
<table >
<tr>
<td>Title</td>
<td><input type="text" name="title" value="<?php echo $row->title;?>"></td>
</tr>
<tr>
<td>Start Time</td>
<td><input type="text" name="from" value="<?php echo $row->from;?>" id="datetimepicker"></td>
</tr>
</form>
需要包含的文件
-jquery.datetimepicker.css
-jquery.datetimepicker.js
-jquery.js
【问题讨论】: