Jump to content

buzzycoder

Members
  • Posts

    29
  • Joined

  • Last visited

Contact Methods

  • Website URL
    https://twitter.com/buzzycoder

Profile Information

  • Gender
    Male
  • Location
    localhost
  • Age
    21

buzzycoder's Achievements

Newbie

Newbie (1/5)

2

Reputation

  1. Ok,this might help you to achieve your goal: <?php $buttons[] = array('class' => 'back', 'name' => 'backbutton', 'id' => 'back-button', 'title' => 'Go Back'); $buttons[] = array('class' => 'save', 'name' => 'savebutton', 'id' => 'save-button', 'title' => 'Save'); $buttons[] = array('class' => 'add', 'name' => 'addbutton', 'id' => 'add-button', 'title' => 'Add'); $buttons[] = array('class' => 'edit', 'name' => 'editbutton', 'id' => 'edit-button', 'title' => 'Edit'); $buttons[] = array('class' => 'delete', 'name' => 'deletebutton', 'id' => 'delete-button', 'title' => 'Delete'); $buttons[] = array('class' => 'archive', 'name' => 'archivebutton', 'id' => 'archive-button', 'title' => 'Archive'); $recs = array('back','save','delete'); //Array of buttons needed foreach ($recs as $rec){ foreach ($buttons as $button) { extract($button); if ($class == $rec) { echo "<input type='button' class='$class' name='$name' id='$id' title='$title' />"; } } } ?>
  2. This code might get you at right direction: <?php $buttons[] = array('class' => 'back', 'name' => 'backbutton', 'id' => 'back-button', 'title' => 'Go Back'); $buttons[] = array('class' => 'save', 'name' => 'savebutton', 'id' => 'save-button', 'title' => 'Save'); $buttons[] = array('class' => 'add', 'name' => 'addbutton', 'id' => 'add-button', 'title' => 'Add'); $buttons[] = array('class' => 'edit', 'name' => 'editbutton', 'id' => 'edit-button', 'title' => 'Edit'); $buttons[] = array('class' => 'delete', 'name' => 'deletebutton', 'id' => 'delete-button', 'title' => 'Delete'); $buttons[] = array('class' => 'archive', 'name' => 'archivebutton', 'id' => 'archive-button', 'title' => 'Archive'); foreach ($buttons as $button) { extract($button); echo "<input type='button' class='$class' name='$name' id='$id' title='$title' />"; } ?>
  3. This code will might help you: HTML Code : <select class='sel' id='left' multiple> <option value='1'>one</option> <option value='2'>two</option> <option value='3'>three</option> <option value='4'>four</option> <option value='5'>five</option> <option value='6'>six</option> </select> <input type='button' value='>>' onclick='move(0)'> <input type='button' value='<<' onclick='move(1)'> <select class='sel' id='right' multiple> </select> Javascript Code : <script type="text/javascript"> function move(direction) { var src = document.getElementById('left' ) var trg = document.getElementById('right' ) var tem if(direction) { tem = src src = trg trg = tem } var selected = [] for(var i in src.options) { if(src.options[i].selected) { trg.options.add(new Option(src.options[i].text, src.options[i].value)); selected.unshift(i); } } for(i in selected) src.options.remove(selected[i]); } </script>
  4. Hi Anuj,your website looks little messy.I think you have to do some more changes in it to look nice.Specially homepage.
  5. Header & Footer looks the clone of codecanyon?
  6. So,does creating .htaccess file solved your issue or still same?
  7. Great,I am glad it helps you ! You can close the question.
  8. I don't think this will be a better way to achieve this.But,it might help you little: <html> <head> <title>CSV Validate</title> </head> <body> <form method="post" action=""> <input type="file" name="cfile" id="cfile"> <input type="submit" value="Submit"> </form> <?php function ext($file) { return substr(strrchr($file,'.'),1); } if (isset($_POST['cfile'])) { $cfile = $_POST['cfile']; $cfile = ext($cfile); if ($cfile == 'csv'){ echo "Valid"; } else { echo "Not Valid"; } } ?> </body> </html>
  9. I am not familiar with CSS.But below code might help you: CSS Code : .tdcss { background-image: url("desktopbig.jpg"); background-repeat: no-repeat; background-position: left center; } HTML Table Code : <table> <tr> <td colspan = "6" valign = "top" class="tdcss"> fafsafsaff </td> </tr> </table>
  10. See the your image link text in the code on second-last line.Add your image location there.Hope it helps you! <center> <div style="background:blue;padding:7px">xxxxT=xxxxxxx EXP DATE:xx/x/xx</div><center> <b><center> <font color=red>*xxxxxxxxxxxxxx</font></b><br> <form action="ClickToCall.php" method="post"> <label for="to">Mobile</label> <span class="mcode">+91</span> <input name="to" class="jinp min" id="ibse_mobile" value="" maxlength="10" type="mobile"/> </script> <input type="image" src="your image link" value="Call"></form> <br> <div style="background:blue;padding:4px;color:white" align="center">© powered by xxxxxxxxxxxxxx</div><center>
  11. This might help you : <select name="day"> <?php for ($d=01; $d<=31; $d++) { $d = sprintf("%02d", $d); echo "<option value='$d'>$d</option>";}?> </select> <select name="month"> <?php for ($m=01; $m<=12; $m++) {$m = sprintf("%02d", $m); echo "<option value='$m'>$m</option>";}?> </select> <select name="year"> <?php for ($y=date("Y"); $y>=1970; $y--) {echo "<option value='$y'>$y</option>";}?> </select>
  12. It might be .htaccess issue.Have a look on that too if any!
  13. Yeah,that would be helpful too.Thanks requinix,for pointing me out.
×
×
  • 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.