Esempio n. 1
0
$ksm->scriptFolder = $KoolControlsFolder . "/KoolSlideMenu";
$ksm->styleFolder = $KoolControlsFolder . "KoolSlideMenu/styles/redgray";
$ksm->addParent("root", "company", "Company");
$ksm->addChild("company", "about", "About Us");
$ksm->addChild("company", "news", "Company News");
$ksm->addChild("company", "contact", "Contact us");
$ksm->addParent("root", "products", "Products");
$ksm->addChild("products", "koolajax", "KoolAjax");
$ksm->addChild("products", "kooltreeview", "KoolTreeView");
$ksm->addChild("products", "koolslidemenu", "KoolSlideMenu");
$ksm->addParent("root", "services", "Services");
$ksm->addChild("services", "outsourcing", "Out-sourcing");
$ksm->addChild("services", "freelancer", "Free-lancer");
$ksm->width = "200px";
$ksm->singleExpand = true;
$ksm2 = new KoolSlideMenu("sm2");
$ksm2->scriptFolder = $KoolControlsFolder . "/KoolSlideMenu";
$ksm2->styleFolder = $KoolControlsFolder . "KoolSlideMenu/styles/redgray";
$ksm2->addParent("root", "company2", "Company");
$ksm2->addChild("company2", "about2", "About Us");
$ksm2->addChild("company2", "news2", "Company News");
$ksm2->addChild("company2", "contact2", "Contact us");
$ksm2->addParent("root", "products2", "Products");
$ksm2->addChild("products2", "koolajax2", "KoolAjax");
$ksm2->addChild("products2", "kooltreeview2", "KoolTreeView");
$ksm2->addChild("products2", "koolslidemenu2", "KoolSlideMenu");
$ksm2->addParent("root", "services2", "Services");
$ksm2->addChild("services2", "outsourcing2", "Out-sourcing");
$ksm2->addChild("services2", "freelancer2", "Free-lancer");
$ksm2->width = "200px";
$ksm2->singleExpand = false;
Esempio n. 2
0
<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
	require $KoolControlsFolder."/KoolSlideMenu/koolslidemenu.php";
			
	$xmlDoc = new DOMDocument();
	$xmlDoc->load("SlideMenu.xml");
	
	$ksm = new KoolSlideMenu("ksm");
	$ksm->loadXML($xmlDoc->saveXML());
	
?>
<div style="height:200px;width:650px;padding-left:10px;">
	<?php echo $ksm->Render();?>
</div>
Esempio n. 3
0
$software_tree->Add("root", "imageeditor", "Image editors", false, "goblet_bronzeS.gif", "");
$software_tree->Add("imageeditor", "photoshop", "Photoshop 10", false, "ball_glass_blueS.gif", "");
$software_tree->Add("imageeditor", "gimp", "GIMP 2.3.4", false, "ball_glass_greenS.gif", "");
$software_tree->showLines = true;
//Create books treeview
$books_tree = new KoolTreeView("books_tree");
$books_tree->imageFolder = $KoolControlsFolder . "/KoolTreeView/icons";
$books_tree->styleFolder = $KoolControlsFolder . "/KoolTreeView/styles/default";
$books_tree->getRootNode()->visible = false;
$books_tree->getRootNode()->expand = true;
$books_tree->Add("root", "ajax", "Ajax For Dummies", false, "BookY.gif", "");
$books_tree->Add("root", "csharp", "Mastering C#", false, "BookY.gif", "");
$books_tree->Add("root", "flash", "Flash 8 Bible", false, "BookY.gif", "");
$books_tree->showLines = true;
//Create SlideMenu
$ksm = new KoolSlideMenu("sm");
$ksm->styleFolder = $KoolControlsFolder . "/KoolSlideMenu/styles/bluearrow";
//Create parent hardware and add hardware tree inside subpanel
$ksm->addParent("root", "hardware", "Hardware", "", true);
$ksm->addPanel("hardware", "hardware_tree_panel", $hardware_tree->Render());
//Create parent software and add software tree inside subpanel
$ksm->addParent("root", "software", "Software");
$ksm->addPanel("software", "software_tree_panel", $software_tree->Render());
//Create parent books and add books tree inside subpanel
$ksm->addParent("root", "books", "Books");
$ksm->addPanel("books", "books_tree_panel", $books_tree->Render());
$ksm->singleExpand = true;
$ksm->width = "200px";
?>
<form id="form1" method="post">
	<div style="padding-left:10px">
Esempio n. 4
0
                    callMain();
                })
            });
        </script>
    </head>
    <body>

        <?php 
$KoolControlsFolder = "../../KoolPHPSuite/KoolControls";
require $KoolControlsFolder . "/KoolSlideMenu/koolslidemenu.php";
//$ksm->slidingSpeed = 6;
//$ksm->width="270px";
//About us
$xmlDoc = new DOMDocument();
$xmlDoc->load("menu.xml");
$ksm = new KoolSlideMenu("ksm");
$ksm->loadXML($xmlDoc->saveXML());
$ksm->scriptFolder = $KoolControlsFolder . "/KoolSlideMenu";
$ksm->styleFolder = $KoolControlsFolder . "KoolSlideMenu/styles/bluearrow";
?>
        <form id="form1" method="post">
            <?php 
echo $ksm->Render();
?>

        </form>
<!--                    <script type="text/javascript">
                        function OnParentMouseOver_handle(sender,arg)
                        {
                            ksm.getItem(arg.ItemId).expand();
                        }	
Esempio n. 5
0
<?php
	require $KoolControlsFolder."/KoolSlideMenu/koolslidemenu.php";	
	$ksm = new KoolSlideMenu("ksm");
	$ksm->scriptFolder =  $KoolControlsFolder."/KoolSlideMenu";	
	$ksm->styleFolder = $KoolControlsFolder."KoolSlideMenu/styles/bluearrow";
	$ksm->width="200px";
	$ksm->singleExpand = true;
	$ksm->boxHeight = 140;
	$result = mysql_query("select ID,ParentID,IsChild,Text from tb_slidemenu");
	while($row = mysql_fetch_assoc($result))
	{
		if($row['IsChild']==0)
		{
			$ksm->addParent($row['ParentID'], $row['ID'], $row['Text']);			
		}
		else
		{
			$ksm->addChild($row['ParentID'], $row['ID'], $row['Text']);
		}
	}	
?>
<form id="form1" method="post">
	<div style="padding-left:10px;">
		<?php echo $ksm->Render();?>
	</div>
</form>
Esempio n. 6
0
<?php

/*
 * This file is ready to run as standalone example. However, please do:
 * 1. Add tags <html><head><body> to make a complete page
 * 2. Change relative path in $KoolControlFolder variable to correctly point to KoolControls folder 
 */
$KoolControlsFolder = "../../../../KoolControls";
//Relative path to "KoolPHPSuite/KoolControls" folder
require $KoolControlsFolder . "/KoolSlideMenu/koolslidemenu.php";
$ksm = new KoolSlideMenu("ksm");
$ksm->scriptFolder = $KoolControlsFolder . "/KoolSlideMenu";
$ksm->styleFolder = $KoolControlsFolder . "KoolSlideMenu/styles/black";
$ksm->addParent("root", "corporate", "Corporate", null, true);
//About us
$ksm->addParent("corporate", "aboutus", "About Us", null, true);
$ksm->addChild("aboutus", "news", "News");
$ksm->addChild("aboutus", "team", "Team");
//Careers
$ksm->addParent("corporate", "careers", "Careers");
$ksm->addChild("careers", "joboffers", "Job Offers");
$ksm->addChild("careers", "environment", "Environment");
$ksm->addParent("root", "services", "Services");
$ksm->addChild("services", "products", "Products");
$ksm->addChild("services", "solutions", "Solutions");
$ksm->addChild("services", "certifications", "Certifications");
$ksm->addParent("root", "work", "Work");
$ksm->addChild("work", "clients", "Clients");
$ksm->addChild("work", "tesimonials", "Tesimonials");
$ksm->addChild("work", "faq", "FAQ");
$ksm->width = "200px";
Esempio n. 7
0
<?php
	require $KoolControlsFolder."/KoolSlideMenu/koolslidemenu.php";
		
	$ksm = new KoolSlideMenu("ksm");
	$ksm->scriptFolder =  $KoolControlsFolder."/KoolSlideMenu";	
	$ksm->addParent("root","company","Company",null,true);
	$ksm->addChild("company","about","About Us");
	$ksm->addChild("company","news","Company News");
	$ksm->addChild("company","contact","Contact us");

	$ksm->addParent("root","products","Products");
	$ksm->addChild("products","koolajax","KoolAjax");
	$ksm->addChild("products","kooltreeview","KoolTreeView");
	$ksm->addChild("products","KoolSlideMenu","KoolSlideMenu");	

	$ksm->addParent("root","services","Services");
	$ksm->addChild("services","outsourcing","Out-sourcing");
	$ksm->addChild("services","freelancer","Free-lancer");
	
	$ksm->singleExpand = true;
	$ksm->width="200px";
	
	$style_select = ( isset($_POST['style_select']) ) ? $_POST['style_select'] : "bluearrow";
	$ksm->styleFolder = $KoolControlsFolder."KoolSlideMenu/styles/$style_select";
?>
<form id="form1" method="post">
	<style type="text/css">
		.box
		{
			float:left;
			width:280px;
Esempio n. 8
0
<?php
	require $KoolControlsFolder."/KoolSlideMenu/koolslidemenu.php";
	require $KoolControlsFolder."/KoolAjax/koolajax.php";
	if ($koolajax->isCallback)	{		sleep(1);	}	
	
	include_once "functions.php" ;
	$ksm = new KoolSlideMenu("ksm");
	$ksm->scriptFolder =  $KoolControlsFolder."/KoolSlideMenu";	
	$ksm->styleFolder = $KoolControlsFolder."KoolSlideMenu/styles/darkgray";
	$ksm_expand = $ksm->addParent("root","step1","Step1 : Account information");	
	$ksm->addPanel( "step1", "Pstep1" , echoStep1() ) ;
	$ksm_expand->expand = true ;
	
	$ksm->addParent("root","step2","<span class='hid' id='wstep2' >Step2 : Newsletter options </span>");
	$ksm->addPanel( "step2", "Pstep2" , echoStep2() ) ;
	
	$ksm->addParent("root","step3","<span class='hid' id='wstep3' >Step3 : Terms of use </span>");
	$ksm->addPanel( "step3", "Pstep3" , echoStep3() ) ;
	
	$ksm->singleExpand = true;
	$ksm->width="500px";
	
	$regisForm = new UpdatePanel( "regisForm" ) ;
	$regisForm->setLoading("$KoolControlsFolder/koolajax/loading/1.gif" , "white"   , 50 );	
	$stepDone = ( isset( $_POST["task"] ) && $_POST[ "task" ] == "done" ) ? true : false  ;
	
	if( $stepDone ) {
		$return = '<div style="height:auto;width:500px;" id="registration-form">		
						<div id="my-tit" >Registration form</div><br/>
						<div >';						
		$return .= echoResult( $_POST[ "data" ]) ;
Esempio n. 9
0
<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
$KoolControlsFolder = "KoolPHPSuite/KoolControls";
require $KoolControlsFolder . "/KoolSlideMenu/koolslidemenu.php";
$ksm = new KoolSlideMenu("ksm");
$ksm->scriptFolder = $KoolControlsFolder . "/KoolSlideMenu";
$ksm->addParent("root", "company", "Company", NULL, true);
$ksm->addChild("company", "about", "About Us", 'javascript:add_tab("1.php","first")');
$ksm->addChild("company", "news", "Company News", 'javascript:add_tab("2.php","second")');
$ksm->addChild("company", "contact", "Contact us");
$ksm->addParent("root", "products", "Products");
$ksm->addChild("products", "koolajax", "KoolAjax");
$ksm->addChild("products", "kooltreeview", "KoolTreeView");
$ksm->addChild("products", "KoolSlideMenu", "KoolSlideMenu");
$ksm->addParent("root", "services", "Services");
$ksm->addChild("services", "outsourcing", "Out-sourcing");
$ksm->addChild("services", "freelancer", "Free-lancer");
$ksm->singleExpand = true;
$ksm->width = "200px";
$style_select = "bluearrow";
$ksm->styleFolder = $KoolControlsFolder . "KoolSlideMenu/styles/{$style_select}";
echo $ksm->render();
require $KoolControlsFolder . "/KoolAjax/koolajax.php";
$koolajax->scriptFolder = $KoolControlsFolder . "/KoolAjax";
echo $koolajax->Render();
require $KoolControlsFolder . "/KoolTabs/kooltabs.php";
$kts = new KoolTabs("kts");
Esempio n. 10
0
<?php
	require $KoolControlsFolder."/KoolTreeView/kooltreeview.php";
	require $KoolControlsFolder."/KoolSlideMenu/koolslidemenu.php";
	require $KoolControlsFolder."/KoolAjax/koolajax.php";
	$ksm = new KoolSlideMenu("ksm");
	$ksm->scriptFolder =  $KoolControlsFolder."/KoolSlideMenu";	
	$ksm->styleFolder = $KoolControlsFolder."KoolSlideMenu/styles/bluearrow";
	$ksm->singleExpand = true;
	$ksm->width="270px";
	$ksm->slidingSpeed = 6;
	$ksm->addParent("root","favoritesites","Favorite Websites");
	$ksm->addChild("favoritesites","google","Google.Com","#");
	$ksm->addChild("favoritesites","MySpace","MySpace.Com","#");
	$ksm->addChild("favoritesites","FaceBook","FaceBook.Com","#");
	
	$ksm->addParent("root","treeview","TreeView");
		$ktv = new KoolTreeView("ktv");
		$ktv->scriptFolder = $KoolControlsFolder."/KoolTreeView";
		$ktv->imageFolder="Images";
		$ktv->styleFolder="default";
		$ktv->showLines = true;
		//Create TreeView 1
		$root = $ktv->getRootNode();
		$root->text = "Personal Folders";
		$root->expand=true;
		$root->image="1PersonalFolders.gif";
		$ktv->Add("root","deleteditem","Deleted Items (6)",false,"2DeletedItems.gif");
		$ktv->Add("root","draft","Drafts",false,"3Drafts.gif");
		$ktv->Add("root","inbox","<b>Inbox (14)</b>",true,"4Inbox.gif");
		$ktv->Add("inbox","invoice","Invoices",false,"folder.gif");
		$ktv->Add("root","junkemail","Junk E-mail",false,"folder.gif");
Esempio n. 11
0
$edu = new education();
$st_edu = $edu->getAll();

$smt = new SMT('StuReg');
$smt->render(array(
    'title' => '新用户注册',
    'st_depart' => $st_depart,
    'st_depart_sel' => -1,
    'st_edu' => $st_edu,
    'st_edu_sel' => key($st_edu)
    ));*/
$KoolControlsFolder = '../../KoolPHPSuite/KoolControls';
require_once $KoolControlsFolder . '/KoolSlideMenu/koolslidemenu.php';
require_once $KoolControlsFolder . '/KoolAjax/koolajax.php';
include_once '../private/class/StuReg/RegPage.php';
$ksm = new KoolSlideMenu("ksm");
$ksm->styleFolder = $KoolControlsFolder . "KoolSlideMenu/styles/apple";
$ksm_expand = $ksm->addParent("root", "step1", "第一步:帐号信息");
$ksm->addPanel("step1", "Pstep1", Step_1());
$ksm->addParent("root", "step2", "<span class='hid' id='wstep2' >第二步 : 用户基本资料 </span>");
$ksm->addPanel("step2", "Pstep2", Step_2());
$ksm->singleExpand = true;
$ksm->width = "100%";
$regisForm = new UpdatePanel("regisForm");
$regisForm->setLoading("../../KoolPHPSuite/KoolControls/KoolAjax/loading/1.gif", "white", 50);
//  $stepDone = ( isset( $_POST["task"] ) && $_POST[ "task" ] == "done" ) ? true : false  ;
$return = ' <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                <link rel="icon" href="images/StuReg/favicon.ico" type="image/x-icon" />
                <link href="css/common.css" rel="stylesheet" type="text/css" />
                <link href="css/StuReg.css" rel="stylesheet" type="text/css" />
                <link rel="stylesheet" href="jquery-ui/development-bundle/themes/base/jquery.ui.all.css" />
Esempio n. 12
0
<?php

/*
 * This file is ready to run as standalone example. However, please do:
 * 1. Add tags <html><head><body> to make a complete page
 * 2. Change relative path in $KoolControlFolder variable to correctly point to KoolControls folder 
 */
$KoolControlsFolder = "../../../../KoolControls";
//Relative path to "KoolPHPSuite/KoolControls" folder
require $KoolControlsFolder . "/KoolSlideMenu/koolslidemenu.php";
$ksm = new KoolSlideMenu("sm");
$ksm->scriptFolder = $KoolControlsFolder . "/KoolSlideMenu";
$ksm->styleFolder = $KoolControlsFolder . "KoolSlideMenu/styles/redgray";
$ksm->addParent("root", "company", "Company", null, true);
$ksm->addChild("company", "about", "About Us");
$ksm->addChild("company", "news", "Company News");
$ksm->addChild("company", "contact", "Contact us");
$ksm->addChild("company", "koolajax", "KoolAjax");
$ksm->addChild("company", "kooltreeview", "KoolTreeView");
$ksm->addChild("company", "koolslidemenu", "KoolSlideMenu");
$ksm->addChild("company", "koolimageview", "KoolImageView");
$ksm->addChild("company", "kooltabs", "KoolTabs");
$ksm->addChild("company", "kooluploader", "KoolUploader");
$ksm->addParent("root", "services", "Services");
$ksm->addChild("services", "outsourcing", "Out-sourcing");
$ksm->addChild("services", "freelancer", "Free-lancer");
$ksm->width = "200px";
$ksm->singleExpand = true;
$ksm->boxHeight = 80;
$ksm->scrollEnable = true;
?>