started webcraft_gallery module
This commit is contained in:
parent
84635a53e4
commit
05718ccb9d
@ -5,5 +5,4 @@ require_once dirname(__FILE__).'/dbd/autoload.inc.php';
|
||||
require_once dirname(__FILE__).'/files/autoload.inc.php';
|
||||
require_once dirname(__FILE__).'/api/autoload.inc.php';
|
||||
require_once dirname(__FILE__).'/config/autoload.inc.php';
|
||||
//require_once dirname(__FILE__).'/sai/autoload.inc.php';
|
||||
//require_once dirname(__FILE__).'/sai/register_modules.php';
|
||||
require_once dirname(__FILE__).'/sai/autoload.inc.php';
|
||||
4
rhein/sai/autoload.inc.php
Normal file
4
rhein/sai/autoload.inc.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
//SYSTEM\autoload::registerFolder(dirname(__FILE__).'/saimod_webcraft_billing_satelite','');
|
||||
SYSTEM\autoload::registerFolder(dirname(__FILE__).'/saimod_webcraft_gallery','');
|
||||
require_once dirname(__FILE__).'/register_modules.php';
|
||||
3
rhein/sai/register_modules.php
Normal file
3
rhein/sai/register_modules.php
Normal file
@ -0,0 +1,3 @@
|
||||
<?php
|
||||
\SYSTEM\SAI\sai::register('saimod_webcraft_gallery');
|
||||
//\SYSTEM\SAI\sai::register('saimod_webcraft_billing_satelite');
|
||||
@ -0,0 +1,3 @@
|
||||
td.customer_details {
|
||||
font-weight: bold;
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
function init_saimod_webcraft_billing_satelite() {
|
||||
$('#billingtab a').click(function (e) {e.preventDefault(); $(this).tab('show');});
|
||||
}
|
||||
@ -0,0 +1,66 @@
|
||||
<h4>Verwaltung</h4>
|
||||
<hr>
|
||||
<div class="tabbable">
|
||||
<ul class="nav nav-tabs" id="billingtab">
|
||||
<li class="active"><a href="#tab_billing">Rechnungen</a></li>
|
||||
<li><a href="#tab_project">Projekte</a></li>
|
||||
<li><a href="#tab_customer">Kundeninformation</a></li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="tab_billing">
|
||||
<table class="table table-hover table-condensed sai_table" style="overflow: auto;">
|
||||
<tr>
|
||||
<th>Rechnungsnummer</th>
|
||||
<th>Projekt</th>
|
||||
<th>Datum</th>
|
||||
<th>PDF</th>
|
||||
<th>Betrag</th>
|
||||
<th>Bezahlt am</th>
|
||||
</tr>
|
||||
${content_billing}
|
||||
</table>
|
||||
</div>
|
||||
<div class="tab-pane" id="tab_project">
|
||||
<table class="table table-hover table-condensed sai_table" style="overflow: auto;">
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Nutzer</th>
|
||||
<th>Firma</th>
|
||||
<th>seit</th>
|
||||
<th>URL</th>
|
||||
<th>Serverpfad</th>
|
||||
<th>token</th>
|
||||
</tr>
|
||||
${content_project}
|
||||
</table>
|
||||
</div>
|
||||
<div class="tab-pane" id="tab_customer">
|
||||
<table class="table table-hover table-condensed sai_table" style="overflow: auto;">
|
||||
<tr>
|
||||
<td class="customer_details">Nutzer ID</td>
|
||||
<td>${ID}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="customer_details">Firma</td>
|
||||
<td>${company}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="customer_details">Vorname</td>
|
||||
<td>${name}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="customer_details">Nachname</td>
|
||||
<td>${name_last}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="customer_details">Addresse</td>
|
||||
<td>${address}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="customer_details">Beigetreten</td>
|
||||
<td>${join}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -0,0 +1,8 @@
|
||||
<tr>
|
||||
<td>${ID}</td>
|
||||
<td>${project_name}</td>
|
||||
<td>${date}</td>
|
||||
<td><a href="${pdf_link}" target="_blank">PDF</a></td>
|
||||
<td>${balance} €</td>
|
||||
<td><span class="badge badge-${state}">${payed_date}</span></td>
|
||||
</tr>
|
||||
@ -0,0 +1,9 @@
|
||||
<tr>
|
||||
<td>${ID}</td>
|
||||
<td>${customer_company}${customer_name} ${customer_name_last}</td>
|
||||
<td>${name}</td>
|
||||
<td>${date}</td>
|
||||
<td><a href="${url}" target="_blank">${url}</a></td>
|
||||
<td>${path}</td>
|
||||
<td>${token}</td>
|
||||
</tr>
|
||||
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
class saimod_webcraft_gallery extends \SYSTEM\SAI\SaiModule {
|
||||
public static function sai_mod_saimod_webcraft_gallery(){}
|
||||
|
||||
public static function html_li_menu(){return '<li><a href="#" saimenu="saimod_webcraft_gallery">Gallery</a></li><li class="divider"></li>';}
|
||||
public static function right_public(){return false;}
|
||||
public static function right_right(){return \SYSTEM\SECURITY\Security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI);}
|
||||
public static function sai_mod_saimod_webcraft_gallery_flag_js(){
|
||||
return \SYSTEM\LOG\JsonResult::toString(
|
||||
array( \SYSTEM\WEBPATH(new PSAI(),'saimod_webcraft_gallery/saimod_webcraft_gallery.js')));}
|
||||
public static function sai_mod_saimod_webcraft_gallery_flag_css(){
|
||||
return \SYSTEM\LOG\JsonResult::toString(
|
||||
array( \SYSTEM\WEBPATH(new PSAI(),'saimod_webcraft_gallery/saimod_webcraft_gallery.css')));}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user