mirror of
https://github.com/Karaka-Management/oms-Script.git
synced 2026-01-11 20:38:42 +00:00
fix bugs
This commit is contained in:
parent
20d90fa8d5
commit
5296f72b32
|
|
@ -24,7 +24,7 @@ echo $this->data['nav']->render(); ?>
|
|||
<div class="row">
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<section class="portlet">
|
||||
<form id="helper-report-create" action="<?= UriFactory::build('{/api}helper/report/report?csrf={$CSRF}'); ?>" method="post">
|
||||
<form id="helper-report-create" action="<?= UriFactory::build('{/api}script/report/report?csrf={$CSRF}'); ?>" method="post">
|
||||
<div class="portlet-head"><?= $this->getHtml('Report'); ?></div>
|
||||
<div class="portlet-body">
|
||||
<div class="form-group">
|
||||
|
|
|
|||
|
|
@ -29,8 +29,8 @@ $accountDir = $account->id . ' ' . $account->login;
|
|||
$collections = $this->data['collections'];
|
||||
$mediaPath = \urldecode($this->getData('path') ?? '/');
|
||||
|
||||
$previous = empty($templates) ? '{/base}/helper/list' : '{/base}/helper/list?{?}&offset=' . \reset($templates)->id . '&ptype=p';
|
||||
$next = empty($templates) ? '{/base}/helper/list' : 'helper/list?{?}&offset=' . \end($templates)->id . '&ptype=n';
|
||||
$previous = empty($templates) ? '{/base}/script/list' : '{/base}/script/list?{?}&offset=' . \reset($templates)->id . '&ptype=p';
|
||||
$next = empty($templates) ? '{/base}/script/list' : 'script/list?{?}&offset=' . \end($templates)->id . '&ptype=n';
|
||||
|
||||
echo $this->data['nav']->render(); ?>
|
||||
<div class="row">
|
||||
|
|
@ -96,7 +96,7 @@ echo $this->data['nav']->render(); ?>
|
|||
</label>
|
||||
<tbody>
|
||||
<?php $count = 0; foreach ($templates as $key => $template) : ++$count;
|
||||
$url = UriFactory::build('{/base}/helper/report/view?{?}&id=' . $template->id); ?>
|
||||
$url = UriFactory::build('{/base}/script/report/view?{?}&id=' . $template->id); ?>
|
||||
<tr tabindex="0" data-href="<?= $url; ?>">
|
||||
<td><label class="checkbox" for="helperList-<?= $key; ?>">
|
||||
<input type="checkbox" id="helperList-<?= $key; ?>" name="helperselect">
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ echo $this->data['nav']->render(); ?>
|
|||
<div class="row">
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<section class="portlet">
|
||||
<form id="helper-template-create" action="<?= \phpOMS\Uri\UriFactory::build('{/api}helper/report/template?csrf={$CSRF}'); ?>" method="post">
|
||||
<form id="helper-template-create" action="<?= \phpOMS\Uri\UriFactory::build('{/api}script/report/template?csrf={$CSRF}'); ?>" method="post">
|
||||
<div class="portlet-head"><?= $this->getHtml('Template'); ?></div>
|
||||
<div class="portlet-body">
|
||||
<div class="form-group">
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ echo $this->data['nav']->render(); ?>
|
|||
<div class="col-xs-12 col-md-9 col-simple">
|
||||
<div class="portlet col-simple">
|
||||
<div class="portlet-body col-simple">
|
||||
<iframe class="col-simple" data-form="iUiSettings" data-name="iframeHelper" id="iHelperFrame" src="<?= UriFactory::build('{/api}helper/report/export/?{?}&id=' . $template->id . '&csrf={$CSRF}'); ?>&u=<?= $this->data['unit']; ?>" allowfullscreen></iframe>
|
||||
<iframe class="col-simple" data-form="iUiSettings" data-name="iframeHelper" id="iHelperFrame" src="<?= UriFactory::build('{/api}script/report/export/?{?}&id=' . $template->id . '&csrf={$CSRF}'); ?>&u=<?= $this->data['unit']; ?>" allowfullscreen></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -65,7 +65,7 @@ echo $this->data['nav']->render(); ?>
|
|||
<section class="portlet">
|
||||
<div class="portlet-head"><?= $this->getHtml('Reports'); ?></div>
|
||||
<div class="portlet-body">
|
||||
<form action="<?= UriFactory::build('{/api}helper/template?csrf={$CSRF}'); ?>" method="post">
|
||||
<form action="<?= UriFactory::build('{/api}script/template?csrf={$CSRF}'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr>
|
||||
|
|
@ -107,7 +107,7 @@ echo $this->data['nav']->render(); ?>
|
|||
<option value="json"<?= $this->printHtml((isset($tcoll['json'])) ? '' : ' disabled'); ?>>Json
|
||||
</select>
|
||||
<tr>
|
||||
<td><a tabindex="0" target="_blank" class="button" href="<?= UriFactory::build('{/api}helper/report/export?{?}'); ?>&type={#iExport}&lang={#iLang}{#iUiSettings}"><?= $this->getHtml('Export'); ?></a>
|
||||
<td><a tabindex="0" target="_blank" class="button" href="<?= UriFactory::build('{/api}script/report/export?{?}'); ?>&type={#iExport}&lang={#iLang}{#iUiSettings}"><?= $this->getHtml('Export'); ?></a>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user