"; $to = $mailto; $subject = $subject; $text = ""; $html = $message; $crlf = "\n"; $mime = new Mail_mime($crlf); $mime->setTXTBody($text); $mime->setHTMLBody($html); if($filename!=""){ $mime->addAttachment($file, 'image/jpeg'); } $body = $mime->get(); //$body= $message ; //$host = "master.dnssols.com"; $host = "mail.mmtpl.com"; $username = "nitesh.tyagi@mmtpl.com"; $password = "master@123"; $hdrs = array ('From' => $from, 'Cc' => $cc, 'Subject' => $subject); $hdrs = $mime->headers($hdrs); $smtp = Mail::factory('smtp', array ('host' => $host, 'auth' => true, 'username' => $username, 'password' => $password)); $mail = $smtp->send($to, $hdrs, $body); if (PEAR::isError($mail)) { // echo("

" . $mail->getMessage() . "

"); } else { //echo("

Message successfully sent!

"); } } function checksecurestrinval($id) { $username= trim($id) ; $username=str_replace("\'","''",$username); $username=str_replace("''","",$username); $username=str_replace(")","",$username); $username=str_replace("(","",$username); $username=str_replace(";","",$username); $username=str_replace("-","",$username); $username=str_replace("|","",$username); $username=str_replace("<","",$username); $username=str_replace(">","",$username); Return $username; } function datejoin($datejjjj) { //return $datejjjj; $end_ts = strtotime($datejjjj); return date("F j, Y, g:i a",$end_ts); } if($_POST) { $editid=$_POST['editid']; $name= ucwords($_POST['name']); $father_name= ucwords($_POST['father_name']); $name_prefix= $_POST['name_prefix']; $product_id= $_POST['product_id']; $proppartner= $_POST['proppartner']; $superiorfran_id= $_POST['superiorfran_id']; $payment_option_online= $_POST['payment_option_online']; $age= 30; $firm_name= ucwords($_POST['firm_name']); $phoneoffice= $_POST['phoneoffice']; $phonereg= $_POST['phonereg']; $fatherorhusband= $_POST['fatherorhusband']; $dateob= $_POST['dateob']; $addressoff= ucwords($_POST['addressoff']); $addressreg= ucwords($_POST['addressreg']); $edudetail= ucwords($_POST['edudetail']); $spouse_name= ucwords($_POST['spouse_name']); $edudetail= ucwords($_POST['edudetail']); $occupation= ucwords($_POST['occupation']); $spouseedudetail= ucwords($_POST['spouseedudetail']); $city= ucwords($_POST['city']); $dateobspouse= $_POST['dateobspouse']; $wedding_anniversary= $_POST['wedding_anniversary']; $servicetaxno= $_POST['servicetaxno']; $franchisby= $_POST['franchisby']; $startdateagreement= $_POST['startdateagreement']; $pendingissues= $_POST['pendingissues']; $trainingupto= $_POST['trainingupto']; $existingcenter= $_POST['existingcenter']; $tieupwithschool= $_POST['tieupwithschool']; $currentnoofstudent= $_POST['currentnoofstudent']; $enddateagreement= $_POST['enddateagreement']; $mstructure_id= $_POST['mstructure_id']; $mobno= $_POST['mobno']; $requestdate= date("Y/m/d H:i:s"); $email= $_POST['email']; $area= $_POST['area'] ; $zipcode= $_POST['zipcode'] ; $onlinetransferamount= $_POST['onlineamount'] ; $onlinetransferamount=$onlinetransferamount+round(((1.25*$onlinetransferamount)/100),2); $noofpartner= $_POST['noofpartner'] ; $nooftrainer= $_POST['nooftrainer'] ; $noofpayment= $_POST['noofpayment'] ; $adminremark= $_POST['adminremark'] ; $confirm_status=1; $ValueArray = array($name,$age,$firm_name,$phoneoffice,$phonereg,$mobno,$email,$addressoff,$addressreg,$spouse_name,$dateob,$zipcode,$dateobspouse,$wedding_anniversary,$servicetaxno,$franchisby,$product_id,$name_prefix,$mstructure_id,$startdateagreement,$pendingissues,$trainingupto,$existingcenter,$tieupwithschool,$currentnoofstudent,$enddateagreement,$father_name,$edudetail,$occupation,$spouseedudetail,$city,$area,$fatherorhusband,$proppartner,$confirm_status,$onlinetransferamount) ; $FieldArray = array('name','age','firm_name','phoneoffice','phonereg','mobno','email','addressoff','addressreg','spouse_name','dateob','zipcode','dateobspouse','wedding_anniversary','servicetaxno','franchisby','product_id','name_prefix','mstructure_id','startdateagreement','pendingissues','trainingupto','existingcenter','tieupwithschool','currentnoofstudent','enddateagreement','father_name','edudetail','occupation','spouseedudetail','city','area','fatherorhusband','proppartner','confirm_status','onlinetransferamount') ; $Succ = $Obj->Update_Dynamic_Query("franchise_request",$ValueArray,$FieldArray,"id",$editid) ; //=======Add more Partners=========== for($n=1; $n<=$noofpartner; $n++) { if($_POST['name'.$n]!="") { $ValueArray = array($_POST['name_prefix'.$n],$_POST['name'.$n],$_POST['dateob'.$n],$_POST['fatherorhusband'.$n],$_POST['father_name'.$n],$_POST['edudetail'.$n],$_POST['spouse_name'.$n],$_POST['dateobspouse'.$n],$_POST['wedding_anniversary'.$n],$_POST['spouseedudetail'.$n],$_POST['email'.$n],$_POST['addressreg'.$n],$_POST['city'.$n],$_POST['zipcode'.$n],$_POST['mobno'.$n],$_POST['phonereg'.$n],$_POST['occupation'.$n],$_POST['father_name_prefix'.$n]) ; $FieldArray = array('name_prefix','name','dateob','fatherorhusband','father_name','edudetail','spouse_name','dateobspouse','wedding_anniversary','spouseedudetail','email','addressreg','city','zipcode','mobno','phonereg','occupation','father_name_prefix') ; $Succ = $Obj->Update_Dynamic_Query("cust_franrequestpartners",$ValueArray,$FieldArray,"id",$_POST['partnereditid'.$n]) ; } } //========End Partners============== //=====Add Trainer detail============ for($n=1; $n<=$nooftrainer; $n++) { $ValueArray = array($_POST['auth_trainername'.$n],$_POST['auth_traineraddress'.$n],$_POST['auth_trainerfathername'.$n],$_POST['authtrainerphoo'.$n],$_POST['authtrainerphor'.$n],$_POST['authtrainermoblie'.$n],$_POST['authtraineremail'.$n],$_POST['authtraineredution'.$n],$_POST['authtrainertrainupto'.$n]) ; $FieldArray = array('auth_trainername','auth_traineraddress','auth_trainerfathername','authtrainerphoo','authtrainerphor','authtrainermoblie','authtraineremail','authtraineredution','authtrainertrainupto') ; $Succ = $Obj->Update_Dynamic_Query("cust_franrequesttranee",$ValueArray,$FieldArray,"id",$_POST['trainereditid'.$n]) ; } //========End Trainer detail ====== //=====Add Payment detail============ for($n=1; $n<=$noofpayment; $n++) { if($_POST['ddamount'.$n]!="") { $ValueArray = array($_POST['ddamount'.$n],$_POST['ddno'.$n],$_POST['bank'.$n],$_POST['branch'.$n],$_POST['chequedate'.$n]) ; $FieldArray = array('ddamount','ddno','bank','branch','chequedate') ; $Succ = $Obj->Update_Dynamic_Query("cust_franrequestpayment",$ValueArray,$FieldArray,"id",$_POST['paymenteditid'.$n]) ; } } //========End Payment detail ====== //================Pdf generation============== try { // create an API client instance $client = new Pdfcrowd("dilipjangid", "f09d78e20c18c63e5e612b08b0f17293"); $client->setPageWidth("210mm"); $client->setPageHeight("297mm"); $client->setInitialPdfZoomType(Pdfcrowd::FIT_PAGE); $client->setPageLayout(Pdfcrowd::CONTINUOUS); // convert a web page and store the generated PDF into a $pdf variable $pdf = $client->convertURI('http://mmtplonline.com/franchise_reg_detail.html?id='.$editid); $file_handle = fopen('pdf/data.pdf','w'); fwrite($file_handle,$pdf); fclose($file_handle); } catch(PdfcrowdException $e) { echo "Pdfcrowd Error: " . $e->getMessage(); } //================End of pdf generation============= $file = 'pdf/data.pdf'; $newfile = 'pdf/regform-'.$editid.'.pdf'; if (!copy($file, $newfile)) { echo "failed to copy $file...\n"; } //======================Send mail================= $my_file = "regform-".$editid.".pdf"; mysql_query("update franchise_request set regpdffile='".$my_file."' where id=".$editid); $my_path = "pdf/"; $UserArray = $Obj->select("select * from `cust_template_table` where `template_name` = 'Application Fill Welcome Mail'") ; $temcount=count($UserArray); if($temcount==0) die("Template is not available"); $fromname= $UserArray[0]['from_name'] ; $fromemail= $UserArray[0]['from_email'] ; $subject= $UserArray[0]['from_subject'] ; $message= $UserArray[0]['template_mess'] ; $tocc= $UserArray[0]['tocc'] ; $message=str_replace('\"','"',$message); $message=str_replace('/UserFiles/','http://mmtplonline.com/UserFiles/',$message); $message1=$message; $name=$name; $emailid=$email; $message=$message1; $subject=str_replace("#month#",$month,$subject); $subject=str_replace("#year#",$year,$subject); $message=str_replace("#company_name#",$company_name,$message); $message=str_replace("#fname#",$name,$message); $message=str_replace("#month#",$month,$message); $message=str_replace("#year#",$year,$message); $message=str_replace("#city#",$city,$message); $message=str_replace("#password#",$password,$message); $message=str_replace("#mobile#",$mobile,$message); $message=str_replace("#permanentadd#",$permanentadd,$message); $message=str_replace("#emailid#",$emailid,$message); $mailcc=$tocc; $cc=$mailcc; //echo $message; $to = $emailid; $recipients = $to.", ".$cc; //$message=str_replace("\n","
",$message); $my_name = $fromname; $my_mail = $fromemail; $my_replyto = $fromemail; $to = $email; $cc=$tocc; $to=$to.",".$cc; $my_subject = $subject; $my_message = $message; mail_attachment($my_file, $my_path, $to, $my_mail, $my_name, $my_replyto, $my_subject, $my_message); //======================End Send Mail================ $flagsendprint="true"; //========================Online payment gateway=============== if($payment_option_online!=0) { //header("location:http://mastermindonlinestudy.com/make-paymentfinal_frareg.html?id=".$editid); header("location:http://www.mmtpl.com/make_payment/franr/".$editid); } //========================End online payment================= } else { if($_GET['cs']) { //echo $_GET['cs']; $strinval=checksecurestrinval($_GET['cs']); $franrequts=$Obj->select("SELECT id FROM franchise_request where confirm_string='".$strinval."'") ; $orderid=$franrequts[0][0]; } else { if($_SESSION['franregreqid']) $orderid=$_SESSION['franregreqid']; else $orderid=154; $orderid=checksecure($orderid); } if($orderid=="") $orderid="df"; $franrequt=$Obj->select("SELECT * FROM franchise_request where id=".$orderid) ; if(count($franrequt)==0) die("Invalid URL"); $product_id=$franrequt[0]['product_id']; $product_idtop=$product_id; $countryid=$franrequt[0]['countryid']; $stateid=$franrequt[0]['stateid']; $cityid=$franrequt[0]['cityid']; $payment_option_online=$franrequt[0]['payment_option_online']; $superiorfran_id=$franrequt[0]['superiorfran_id']; $flagsendprint="false"; } ?> <?=$pagetitle?>

Registration - Confirmation Form

0) {$i=1;?> 0) {$i=1;?> 0) {$i=1;?>
Please confirm all information again.
Location select("select * from `country` where `id` = ".$franrequt[0]['countryid']) ; $countryname= $UserArray[0]['countryname'] ; $UserArray = $Obj->select("select * from `state` where `id` = ".$franrequt[0]['stateid']) ; $statename= $UserArray[0]['statename'] ; $UserArray = $Obj->select("select * from `distict` where `id` = ".$franrequt[0]['cityid']) ; $cityname= $UserArray[0]['distictname'] ; $UserArray = $Obj->select("select * from `tehesil` where `id` = ".$franrequt[0]['centerid']) ; $centername= $UserArray[0]['tehasilname'] ; echo $countryname; echo ">> "; echo $statename; echo ">> "; echo $cityname; ?>
Product
Apply For
Firm Name
Define Your Area
Prop./ Partners/Director
Date Of Birth
Father/Husband Name
Educational qualification
Present business / Job
Spouse Name
Date of Birth of Spouse
Weeding Anniversary
Education of your spouse
Email ID
Address(Office/Center)
Address(R)
City.
Pin/Zip No.
Mobile (For SMS updates type START MASTER and send to 9004409994)
Phone No(O)
Phone No(R)
 
Detail of Partner
Name
Date Of Birth
Father/Husband Name
Educational qualification
Present business / Job
Spouse Name
Date of Birth of Spouse
Weeding Anniversary
Education of your spouse
Email ID
Address(R)
City.
Pin/Zip No.
Mobile
Phone No(R)

Trainer Details

Trainer Detail
Authorized Trainer Name
Trainer Father/Husband Name
Authorized Trainer Address
Phone No(O)
Phone No(R)
Mobile No.
E-Mail Address
Educational qualification
Training Up to
 

Payment Details

Payment Detail
Mode Of Payment -
Amount Rs.
DD/Cheque No/Transaction ID
Bank
Branch
Cheque/Payment Date
Mode Of Payment -
DD/Amount Rs. (1.25% transaction amount will be applicable)
 
I accept all Terms and Condition

Please signed the application form and send it to below address

51, Sampat Hills,
In front of Sahara City
Bicholi Mardana By pass
Indore – 452016 (M.P.) India
Phone : 8109055112

If this form will not received in H.O. then your franchiseedistributor panel will be close. A Pdf file has been send to your email.

Print Out OR Download Application Form