* ajusted views of module 'extension', 'editor' & 'debug'.
This commit is contained in:
@@ -1,54 +1,43 @@
|
||||
<?php include '../../common/view/header.lite.html.php';?>
|
||||
<?php include '../../common/view/form.html.php';?>
|
||||
<table class='table-1' id='api'>
|
||||
<caption>
|
||||
<?php echo $method->post ? 'GET/POST ' . $filePath : 'GET ' . $filePath?>
|
||||
</caption>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo "<p class='strong'>{$lang->api->position}</p>"?>
|
||||
<?php echo '<div>' . sprintf($lang->api->startLine, $method->fileName, $method->startLine) . '</div>'?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo "<p class='strong'>{$lang->api->desc}</p>"?>
|
||||
<?php echo '<div>' . str_replace("\n", "<Br/>", $method->comment) . '</div>'?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo "<p class='strong'>{$lang->api->debug}</p>"?>
|
||||
<form method='post' id='apiForm'>
|
||||
<?php if($method->parameters):?>
|
||||
<table>
|
||||
<?php foreach($method->parameters as $param):?>
|
||||
<tr>
|
||||
<th><?php echo $param->name?></th>
|
||||
<td><?php echo html::input("$param->name", $param->isOptional() ? $param->getDefaultValue() : '')?></td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
<tr>
|
||||
<td align='center' colspan="2">
|
||||
<?php echo html::submitButton($lang->api->submit)?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php else:?>
|
||||
<?php echo html::hidden('noparam', '0') . $lang->api->noParam . html::submitButton($lang->api->submit);?>
|
||||
<?php endif;?>
|
||||
</form>
|
||||
<?php if($method->post) echo "<p>{$lang->api->post}</p>"?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id="result" class="hidden">
|
||||
<p class="strong"><?php echo $lang->api->url?>:</p>
|
||||
<div class='panel panel-sm' id='api'>
|
||||
<div class='panel-heading'><i class='icon-terminal'></i> <strong><?php echo $method->post ? 'GET/POST ' . $filePath : 'GET ' . $filePath?></strong></div>
|
||||
<div class='panel-body'>
|
||||
<?php echo "<h5>{$lang->api->position}</h5>"?>
|
||||
<?php echo '<code>' . sprintf($lang->api->startLine, $method->fileName, $method->startLine) . '</code>'?>
|
||||
<hr>
|
||||
<?php echo "<h5>{$lang->api->desc}</h5>"?>
|
||||
<?php echo '<pre>' . str_replace("\n", "<Br/>", $method->comment) . '</pre>'?>
|
||||
<hr>
|
||||
<?php echo "<h5>{$lang->api->debug}</h5>"?>
|
||||
<form method='post' id='apiForm' class='form-condensed'>
|
||||
<?php if($method->parameters):?>
|
||||
<table class='table table-form'>
|
||||
<?php foreach($method->parameters as $param):?>
|
||||
<tr>
|
||||
<th class='w-80px'><?php echo $param->name?></th>
|
||||
<td><?php echo html::input("$param->name", $param->isOptional() ? $param->getDefaultValue() : '', "class='form-control'")?></td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
<tr>
|
||||
<td align='center' colspan="2">
|
||||
<?php echo html::submitButton($lang->api->submit)?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php else:?>
|
||||
<?php echo html::hidden('noparam', '0') . $lang->api->noParam . html::submitButton($lang->api->submit);?>
|
||||
<?php endif;?>
|
||||
</form>
|
||||
<?php if($method->post) echo "<p>{$lang->api->post}</p>"?>
|
||||
<div id="result" class="hidden">
|
||||
<hr>
|
||||
<h5><?php echo $lang->api->url?>:</h5>
|
||||
<div class="url"></div>
|
||||
<p class="strong"><?php echo $lang->api->result?>:</p>
|
||||
<p><?php echo $lang->api->status?>: <span class="status"></span></p>
|
||||
<p><?php echo $lang->api->data?>: <span class="data"></span></p>
|
||||
</td>
|
||||
<tr>
|
||||
</table>
|
||||
<h5><?php echo $lang->api->result?>:</h5>
|
||||
<p><?php echo $lang->api->status?>: <code class="status"></code></p>
|
||||
<p><?php echo $lang->api->data?>: <pre class="data"></pre></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php include '../../common/view/footer.lite.html.php';?>
|
||||
|
||||
Reference in New Issue
Block a user