Skip to content

Instantly share code, notes, and snippets.

<html><body bgcolor="#FFFFFF"></body></html>
COM_MYRESOURCELIST_FORM_DESC_NAME = "Give your First Name"
COM_MYRESOURCELIST_FORM_LBL_NAME = "First Name"
COM_MYRESOURCELIST_FORM_DESC_LNAME = "Give your Last Name"
COM_MYRESOURCELIST_FORM_LBL_LNAME = "Last Name"
COM_MYRESOURCELIST_FORM_DESC_AGE = "Give Your Age"
COM_MYRESOURCELIST_FORM_LBL_AGE = "Age"
COM_MYRESOURCELIST_FORM_DESC_CITY = "Give Your city"
COM_MYRESOURCELIST_FORM_LBL_CITY = "City"
COM_MYRESOURCELIST_FORM_DESC_TELEPHONE = "Give Your Telephone Number"
COM_MYRESOURCELIST_FORM_LBL_TELEPHONE = "Telephone"
<?xml version="1.0" encoding="UTF-8"?>
<form name="updjointcm">
<fieldset name="joinwithus">
<field name="fname" type="text" description="COM_MYRESOURCELIST_FORM_DESC_NAME"
label="COM_MYRESOURCELIST_FORM_LBL_NAME" required="true" size="50" />
<field name="lname" type="text" description="COM_MYRESOURCELIST_FORM_DESC_LNAME"
label="COM_MYRESOURCELIST_FORM_LBL_LNAME" size="50" />
<field name="age" type="text" description="COM_MYRESOURCELIST_FORM_DESC_AGE"
<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// Include dependancy of the main model form
jimport('joomla.application.component.modelform');
// import Joomla modelitem library
jimport('joomla.application.component.modelitem');
// Include dependancy of the dispatcher
<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
JHtml::_('behavior.keepalive');
JHtml::_('behavior.formvalidation');
JHtml::_('behavior.tooltip');
// get the menu parameters for use
$menuparams = $this->state->get("menuparams");
<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla view library
jimport('joomla.application.component.view');
// import Joomla html for use with stylesheets
jimport('joomla.html.html');
/**
* JoinTCMs View
@e06widu
e06widu / gist:5660529
Created May 28, 2013 04:28
install.mysql.utf8.sql
DROP TABLE IF EXISTS `#__joinwithus`;
CREATE TABLE `#__joinwithus` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`firstname` varchar(100) NOT NULL,
`lastname` varchar(100) DEFAULT NULL,
`age` int(11) DEFAULT NULL,
`city` varchar(100) DEFAULT NULL,
`telephone` varchar(100) DEFAULT NULL,
`email` varchar(100) DEFAULT NULL,
<?php
// No direct access.
defined('_JEXEC') or die;
// Include dependancy of the main controllerform class
jimport('joomla.application.component.controllerform');
class MyResourceListControllerJoinWithUs extends JControllerForm
{
<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// Include dependancy of the main model form
jimport('joomla.application.component.modelform');
// import Joomla modelitem library
jimport('joomla.application.component.modelitem');
// Include dependancy of the dispatcher
CREATE TABLE IF NOT EXISTS `mrl_region` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`Name` varchar(200) NOT NULL,
`userId` int(200) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=12 ;
INSERT INTO `mrl_region` (`id`, `Name`, `userId`) VALUES
(1, 'ASIA-EAST', 20),
(2, 'ASIA-SOUTH AND SOUTH EAST', 0),