How to Create Own Form in Interspire


There are Four files should be Created for to Create own Interspire Form ,steps
 mention below before you should make herf link for Sony idea in topmenu.html file in panel directory and pass the link interspire/master.php.

Steps 1.Create Master.php → interspire/master.php and paste the given below code
include(dirname(__FILE__)."/init.php");
require(dirname(__FILE__).'/includes/classes/class.master.php');
$GLOBALS['ISC_CLASS_GIFT_CERTIFICATES'] = GetClass('ISC_MASTER');
$GLOBALS['ISC_CLASS_GIFT_CERTIFICATES']->HandlePage();

Step 2. Create class.master.php → interspire/include/class/class.master.php and paste given below code

class ISC_MASTER
{


public function HandlePage()
{
//$GLOBALS['ISC_CLASS_TEMPLATE']->SetPageTitle(sprintf("%s - %s", GetConfig('StoreName'), GetLang('Master')));
//$GLOBALS['ISC_CLASS_TEMPLATE']->SetTemplate("giftcertificates");
//$GLOBALS['ISC_CLASS_TEMPLATE']->ParseTemplate();
$GLOBALS['ISC_CLASS_TEMPLATE']->SetTemplate("master");

//Note:- master is html file which is located in root directory of master folder …....

$GLOBALS['ISC_CLASS_TEMPLATE']->ParseTemplate();
//$certificate = $GLOBALS['ISC_CLASS_TEMPLATE']->ParseTemplate(true);
}
}
Step 3. Create master.html file and put on the root directory of master folder master/master.html
basically , this html file have Layout file whatever you want display. Like
<body>
<div id="Container">
%%Panel.Header%%

<div id="Wrapper">
%%Panel.WrapperBanner%%
<div class="Left" id="LayoutColumn1">
%%Panel.GiftCertificatesMenu%%
%%Panel.SideCategoryList%%
%%Panel.SideNewsletterBox%%
</div>
<div class="Content Wide WideWithLeft" id="LayoutColumn2">
%%Panel.Themaster%%

//Note Themaster is file that have to placed in panel like master/panel/Themaster
</div>
<br class="Clear" />
</div>
%%Panel.Footer%%
</div>
</body>

Step 4. Create Themaster.html file and put on panel directory.


Comments

Post a Comment