PHP Classes

File: demo_3.php

Recommend this page to a friend!
  Classes of bonvga  >  SmartyX  >  demo_3.php  >  Download  
File: demo_3.php
Role: Example script
Content type: text/plain
Description: demo 3
Class: SmartyX
Extend Smarty to use ModeliXe notation
Author: By
Last change:
Date: 17 years ago
Size: 4,451 bytes
 

Contents

Class file image Download
<?php
   
// demo 3 - sort and imbricate

   
$smartyx->smxUseRelativePath(false);
   
   
$smartyx->smxSetTemplate("","demo_bloc.html");
   
$smartyx->smxAssign("color","#FFFF99");
   
$smartyx->smxAssign("title","bloc 1");

/*
 * ordered code
 */
   
$smartyx->smxSetTemplate("bloc4","demo_bloc.html");
   
$smartyx->smxAssign("bloc4.color","#999999");
   
$smartyx->smxAssign("bloc4.title","ordered demo");
   
$smartyx->smxSetTemplate("bloc4.bloc4","demo_bloc.html");
   
$smartyx->smxAssign("bloc4.bloc4.color","#CCCCCC");
   
$smartyx->smxAssign("bloc4.bloc4.title","ordered demo");
   
$smartyx->smxSetTemplate("bloc4.bloc4.bloc4","demo_bloc.html");
   
$smartyx->smxAssign("bloc4.bloc4.bloc4.color","#999999");
   
$smartyx->smxAssign("bloc4.bloc4.bloc4.title","ordered demo");
   
$smartyx->smxSetTemplate("bloc4.bloc4.bloc4.bloc4","demo_bloc.html");
   
$smartyx->smxAssign("bloc4.bloc4.bloc4.bloc4.color","#CCCCCC");
   
$smartyx->smxAssign("bloc4.bloc4.bloc4.bloc4.title","ordered demo");
   
$smartyx->smxSetTemplate("bloc4.bloc4.bloc4.bloc4.bloc4","demo_bloc.html");
   
$smartyx->smxAssign("bloc4.bloc4.bloc4.bloc4.bloc4.color","#999999");
   
$smartyx->smxAssign("bloc4.bloc4.bloc4.bloc4.bloc4.title","ordered demo");
   
$smartyx->smxSetTemplate("bloc4.bloc4.bloc4.bloc4.bloc4.bloc4","demo_bloc.html");
   
$smartyx->smxAssign("bloc4.bloc4.bloc4.bloc4.bloc4.bloc4.color","#CCCCCC");
   
$smartyx->smxAssign("bloc4.bloc4.bloc4.bloc4.bloc4.bloc4.title","ordered demo");
   
$smartyx->smxSetTemplate("bloc4.bloc4.bloc4.bloc4.bloc4.bloc4.bloc4","demo_bloc.html");
   
$smartyx->smxAssign("bloc4.bloc4.bloc4.bloc4.bloc4.bloc4.bloc4.color","#999999");
   
$smartyx->smxAssign("bloc4.bloc4.bloc4.bloc4.bloc4.bloc4.bloc4.title","ordered demo");
   
$smartyx->smxSetTemplate("bloc4.bloc4.bloc4.bloc4.bloc4.bloc4.bloc4.bloc4","demo_bloc.html");
   
$smartyx->smxAssign("bloc4.bloc4.bloc4.bloc4.bloc4.bloc4.bloc4.bloc4.color","#CCCCCC");
   
$smartyx->smxAssign("bloc4.bloc4.bloc4.bloc4.bloc4.bloc4.bloc4.bloc4.title","ordered demo");
   
$smartyx->smxSetTemplate("bloc4.bloc4.bloc4.bloc4.bloc4.bloc4.bloc4.bloc4.bloc4","demo_bloc.html");
   
$smartyx->smxAssign("bloc4.bloc4.bloc4.bloc4.bloc4.bloc4.bloc4.bloc4.bloc4.color","#999999");
   
$smartyx->smxAssign("bloc4.bloc4.bloc4.bloc4.bloc4.bloc4.bloc4.bloc4.bloc4.title","ordered demo");

/*
 * disordered code
 */
   
$smartyx->smxAssign("bloc5.bloc5.title","reorder demo");
   
$smartyx->smxAssign("bloc5.bloc5.bloc5.bloc5.bloc5.bloc5.title","reorder demo");
   
$smartyx->smxSetTemplate("bloc5.bloc5.bloc5.bloc5","demo_bloc.html");
   
$smartyx->smxAssign("bloc5.bloc5.bloc5.title","reorder demo");
   
$smartyx->smxSetTemplate("bloc5.bloc5.bloc5.bloc5.bloc5.bloc5.bloc5","demo_bloc.html");
   
$smartyx->smxSetTemplate("bloc5.bloc5.bloc5.bloc5.bloc5.bloc5.bloc5.bloc5.bloc5","demo_bloc.html");
   
$smartyx->smxAssign("bloc5.bloc5.bloc5.bloc5.bloc5.bloc5.bloc5.bloc5.bloc5.color","#999999");
   
$smartyx->smxAssign("bloc5.bloc5.bloc5.bloc5.title","reorder demo");
   
$smartyx->smxAssign("bloc5.bloc5.bloc5.bloc5.bloc5.bloc5.bloc5.bloc5.title","reorder demo");
   
$smartyx->smxSetTemplate("bloc5.bloc5","demo_bloc.html");
   
$smartyx->smxAssign("bloc5.bloc5.bloc5.bloc5.bloc5.bloc5.bloc5.bloc5.bloc5.title","reorder demo");
   
$smartyx->smxAssign("bloc5.bloc5.bloc5.bloc5.bloc5.title","reorder demo");
   
$smartyx->smxSetTemplate("bloc5.bloc5.bloc5.bloc5.bloc5.bloc5","demo_bloc.html");
   
$smartyx->smxSetTemplate("bloc5.bloc5.bloc5.bloc5.bloc5","demo_bloc.html");
   
$smartyx->smxAssign("bloc5.bloc5.bloc5.bloc5.color","#CCCCCC");
   
$smartyx->smxAssign("bloc5.bloc5.color","#CCCCCC");
   
$smartyx->smxAssign("bloc5.bloc5.bloc5.bloc5.bloc5.color","#999999");
   
$smartyx->smxSetTemplate("bloc5.bloc5.bloc5.bloc5.bloc5.bloc5.bloc5.bloc5","demo_bloc.html");
   
$smartyx->smxSetTemplate("bloc5.bloc5.bloc5","demo_bloc.html");
   
$smartyx->smxAssign("bloc5.bloc5.bloc5.color","#999999");
   
$smartyx->smxAssign("bloc5.bloc5.bloc5.bloc5.bloc5.bloc5.color","#CCCCCC");
   
$smartyx->smxAssign("bloc5.color","#999999");
   
$smartyx->smxAssign("bloc5.bloc5.bloc5.bloc5.bloc5.bloc5.bloc5.color","#999999");
   
$smartyx->smxAssign("bloc5.bloc5.bloc5.bloc5.bloc5.bloc5.bloc5.title","reorder demo");
   
$smartyx->smxSetTemplate("bloc5","demo_bloc.html");
   
$smartyx->smxAssign("bloc5.bloc5.bloc5.bloc5.bloc5.bloc5.bloc5.bloc5.color","#CCCCCC");
   
$smartyx->smxAssign("bloc5.title","reorder demo");

   
$smartyx->smxDisplay();

   
/*echo "<pre>";
    print_r($smartyx);
    echo "</pre>";*/
?>

For more information send a message to info at phpclasses dot org.