Jump to content

stbalaji2u

Members
  • Posts

    45
  • Joined

  • Last visited

    Never

About stbalaji2u

  • Birthday 10/10/1986

Contact Methods

  • Website URL
    http://www.site360.co.cc
  • Yahoo
    stbalaji2u@yahoo.co.in

Profile Information

  • Gender
    Male
  • Location
    India

stbalaji2u's Achievements

Member

Member (2/5)

0

Reputation

  1. ok then here is the code. im using this as a model to make a script that displays a template text and when the user select a word from a drop down list box then that word must be replaced in the placeholder text like {name} . <?php require_once( '../headers.php' ); // Process input data $cat_id = ( $_GET['cat_id'] ) ? ( int )$_GET['cat_id'] : ( int )$_POST['cat_id']; if ( strlen( trim( $_POST['New_Template'] ) ) ) { $tem_attribute = 1; } // TODO : Statements here $smarty = new DirSmarty(); $ADMIN = $SkaLinks->IsAdmin(); if ( $ADMIN['Type'] != 2 ) { $msg = $_skalinks_lang['msg']['not_admin']; require_once( '../index.php' ); } else { $tem_table = $SkaLinks->m_LetterTemTable; $tem_binding_table = $SkaLinks->m_LetterTemBindingTable; $links_table = $SkaLinks->m_LinksTable; if ( $_POST['Add_Template'] ) { if ( $tem_attribute ) { $SkaLinks->db_Query( "INSERT INTO `$tem_table` (`Template`) VALUES ('".$_POST['New_Template']."')" ); $msg = $_skalinks_lang['msg']['template_added']; } else { $msg = $_skalinks_lang['msg']['inf_incomplete']; } } if ( $_POST['Change_Template'] ) { if ( $_POST['Templates_arr'] ) { $tem_info_attr = 0; foreach( $_POST['Templates_arr'] as $value ) { if ( strlen( trim( $_POST['Letter_tem'][$value] ) ) ) { $SkaLinks->db_Query( "UPDATE `$tem_table` SET `Template`='".$_POST['Letter_tem'][$value]."' WHERE `ID`='".$value."'" ); } else { $tem_info_attr = 1; } } if ( count( $_POST['Templates_arr'] ) > 1 && $tem_info_attr ) { $msg = $_skalinks_lang['msg']['templates_not_all_changed']; } elseif ( $tem_info_attr ) { $msg = $_skalinks_lang['msg']['template_not_changed']; } else { $msg = $_skalinks_lang['msg']['template_changed']; } } else { $msg = $_skalinks_lang['msg']['tem_not_checked']; } } if ( $_POST['Delete_Template'] ) { if ( $_POST['Templates_arr'] ) { foreach( $_POST['Templates_arr'] as $key => $value ) { $tem_status = $SkaLinks->db_Row( "SELECT `Status` FROM `$tem_table` WHERE `ID`='".$_POST['Templates_arr'][$key]."'" ); if ( !$tem_status['Status'] ) { $SkaLinks->db_Query( "DELETE FROM `$tem_table` WHERE `ID`='".$_POST['Templates_arr'][$key]."'" ); $SkaLinks->db_Query( "DELETE FROM `$tem_binding_table` WHERE `Template_id`='".$_POST['Templates_arr'][$key]."'" ); $SkaLinks->db_Query( "UPDATE `$links_table` SET `Template_id`='0' WHERE `Template_id`='".$_POST['Templates_arr'][$key]."'" ); } else { $msg = $_skalinks_lang['msg']['del_default_template']; } } $msg = ( !$msg ) ? $_skalinks_lang['msg']['template_deleted'] : $msg; } else { $msg = $_skalinks_lang['msg']['tem_not_checked']; } } $_output['all_templates'] = $SkaLinks->db_Fetch( "SELECT * FROM `$tem_table`" ); $_output['count'] = 0; // Show HTML display( 'template_settings' ); } ?> I want to have a text field that shows text like and now below this text box there are 4 drop down boxes one is {name} ,and for {place} and for {degree} and for {destination} all these drop down boxes have multiple values for example {name} list box contains options like gevans,corey,jackson etc now if he selects the name gevans then the next page(i.e page that comes after clicking submit button) must show the replaced texts and now it will become a easily made document. hope this is sufficient if you want to know more details pls dont hesitate to ask me.
  2. im trying to working on a template based document building script.i think this code will help me to get a input from the user such that he dont need to type the full document just the name,places of his choice must be selected and our script will generate the final document with his needed text in the placeholder like {name} {place} etc. the code is here.pls tell me for what this code exactly for? and of these two codes which will best suit my need? $Sdocbuild->db_Query( "INSERT INTO `$tem_table` (`Template`) VALUES ('".$_POST['New_Template']."')" ); second code is $SkaLinks->db_Query( "UPDATE `$tem_table` SET `Template`='".$_POST['Letter_tem'][$value]."' WHERE `ID`='".$value."'" ); thanks.
  3. Thanks a lot mchl.. can you figure out some possible reasons for those error !! was quite busy with my tommorrow's exams..
  4. oops sorry for that @mchl.. though it would be nice if you first reviewed about the design of my site and then start criticizing .. hope it would be a good manners..
  5. yeah i thought about changing those keywords.. header will be redesigned soon me to don't like the background preparing for a good one.. anyway thanks and keep reviewing
  6. Take a look at my site and post me if there any known bugs. Thank you.. Site360-Are Y0u Deadly En0ugh?? www.Site360.co.cc
  7. with forging a fake source ip to the server and cheating the HTACCESS file...
  8. oh s s am so stupid to think like that.. is file get content function will help in that?
  9. echo "this is the site to be emulated in our window".implode("", file("http://www.somesite.com/script.php?search=".$search.""))."end of site"; like this?
  10. I mean that using the implode function to display the output page of some others website into our site with in a frame or div like that..
  11. Is there any way to implode a anonymized sites in to our scripts?
  12. Its for accessing some music and movie sites in college which blocks our hostel ip address ... hope you understand.
  13. Please tell me how to write a script to have the domain and ip restriction feature removing so that the i can use the script to browse anonymously with out using proxy sites.
  14. hmm yeah i tried that all ready.. but i expected some easy going tut's any way its ok... from now i manage to study from the link that u given,..
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.