コード例 #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
    ?>
);" value="<?php 
    echo _('Delete');
    ?>
" />
<?php 
}
?>
  </td>
</tr>
</table>

<?php 
// DEBUT ONGLET
// Creation du TabStrip
$tab = new TabStrip();
$tab->includeTab(_('Contacts'), "../inc/tab/fiche_prospect_contacts.php", "contacts");
$tab->includeTab(_('Billing'), "../inc/tab/fiche_prospect_billing.php", "billing");
$tab->includeTab(_('Follow&nbsp;up'), "../inc/tab/fiche_prospect_log.php", "followup");
$tab->includeTab(_('Miscellaneous'), "../inc/tab/fiche_prospect_other.php", "other");
$tab->includeTab(_('Graphics'), "../inc/tab/fiche_prospect_graph.php", "graph");
$tab->includeTab(_('Events'), "../inc/tab/fiche_prospect_event.php", "event");
$tab->includeTab(_('Documents'), "../inc/tab/fiche_prospect_documents.php", "documents");
$tab->includeTab(_('Contracts'), "../inc/tab/fiche_prospect_contracts.php", "contracts");
$tab->includeTab(_('Direct Debits'), "../inc/tab/fiche_prospect_direct_debit.php", "direct debits");
if (isset($_GET['tab'])) {
    $tab->setFocusedTab($_GET['tab']);
}
$tab->realise();
// FIN ONGLET
?>
コード例 #3
0
ファイル: index.php プロジェクト: lopacinski/WebFinance
*/
//
// 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: index.php 531 2007-06-13 12:32:31Z thierry $
require "../inc/main.php";
$roles = 'any';
$title = _('Graphics');
array_push($extra_js, '/js/onglets.js');
require "../top.php";
$tab = new TabStrip();
global $User;
$User->getInfos();
?>
<script type="text/javascript">

function updateCashFlow(chk) {
  i = document.getElementById('cashflow_img');
  if (!i) return;
  url = i.src;
  url = url.replace(/&movingaverage=[0-9]+/, '');
  if (chk.checked) {
    url = url+'&movingaverage=1';
  } else {
    url = url+'&movingaverage=0';
  }