コード例 #1
0
ファイル: tabstip.php プロジェクト: lopacinski/WebFinance
    Webfinance is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Webfinance; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/
//
// This file is part of « Webfinance »
//
// Copyright (c) 2004-2006 NBI SARL
// Author : Nicolas Bouthors <*****@*****.**>
//
// You can use and redistribute this file under the term of the GNU GPL v2.0
//
// $Id: tabstip.php 532 2007-06-14 10:39:19Z thierry $
require "../inc/main.php";
array_push($extra_js, '/js/onglets.js');
$title = _('Test TabStrip');
require "../top.php";
require "../inc/TabStrip.php";
$tab = new TabStrip(3);
$tab->addTab("Onglet 1", "Contenu onglet 1", "test");
$tab->addTab("Onglet 2", "Contenu onglet 2", "test");
$tab->addTab("A very very long title", "Shal not break the layout", "test");
$tab->realise();
$Revision = '$Revision: 532 $';
require "../bottom.php";
コード例 #2
0
ファイル: index.php プロジェクト: lopacinski/WebFinance
  if (chk.checked) {
    url = url+'&movingaverage=1';
  } else {
    url = url+'&movingaverage=0';
  }
  i.src = url;
}

</script>
<form>
<?php 
if ($User->isAuthorized('accounting,manager')) {
    $cashflow = <<<EOF
<input type="checkbox" name="moving_average" onchange="updateCashFlow(this)"> Display moving average
<img id="cashflow_img" alt="cashflow" src="cashflow.php?width=850&height=500&movingaverage=0" width="850" height="500" />
EOF;
    $tab->addTab(_('Cashflow'), $cashflow, 'cashflow');
}
if ($User->isAuthorized('accounting,employee,manager')) {
    $clientincome = <<<EOF
<img id="clients_income" alt="clients_income" src="clients_income.php?width=850&height=400" width="850" height="400" />
EOF;
    $tab->addTab(_('Client income'), $clientincome, 'client_income');
}
if (isset($_GET['tab'])) {
    $tab->setFocusedTab($_GET['tab']);
}
$tab->realise();
print "</form>";
$Revision = '$Revision: 531 $';
require "../bottom.php";