RuFiK Posted February 8, 2011 Share Posted February 8, 2011 Heloo please fill the Attachment http://img268.imageshack.us/img268/4953/smsoffline.png and here is my source code of Payment (Offline) <?php if(isset($_POST['account']) AND is_numeric($_POST['account']) AND isset($_POST['invoice']) AND isset($_POST['client'])) { require("../../dbconnect.php"); // Check the logged in user with the posted user if($_SESSION['uid'] == $_POST['client']) { // Check if the invoice is from the user $result = mysql_query("SELECT id FROM tblinvoices WHERE userid='".$_POST['client']."' AND id = '".$_POST['invoice']."';"); if(mysql_numrows($result) == 1) { /* Put in a script like updating the invoice description with the details, or just a PHP-mail script. */ echo "<script type=\"text/javascript\"> <!-- alert('Bank account number saved (or something)...'); window.location = \"../../clientarea.php\" //--> </script>"; } } die(); } function vssmsoffline_config() { $configarray = array( "FriendlyName" => array("Type" => "System", "Value"=>"Payment (offline)"), "testmode" => array("FriendlyName" => "Test Mode", "Type" => "yesno", "Description" => "Tick this to test", ), "instructions" => array("FriendlyName" => "Payment Instructions", "Type" => "textarea", "Rows" => "5", "Description" => "Do this then do that etc...", ), ); return $configarray; } function vssmsoffline_link($params) { $code = '<form method="post"" action="/modules/gateways/vssmsoffline.php"> <input type="input" name="account" value="Fill in your bank account" onclick="this.value=\'\'" /> <input type="hidden" name="invoice" value="'.$params['invoiceid'].'" /> <input type="hidden" name="client" value="'.$params['clientdetails']['id'].'" /> <input type="fieldarea" /> <textarea name="field[instructions]" cols="60" rows=""> </textarea> <input type="submit" value="Request payment" /> </form>'; return $code; } ?> What is wrong, i want to look that like as "Przelew bankowy" Thank you 0 Quote Link to comment Share on other sites More sharing options...
djwmguk Posted February 10, 2011 Share Posted February 10, 2011 Hey, See function vssmsoffline_link($params) { $code = '<form method="post"" action="/modules/gateways/vssmsoffline.php"> <input type="input" name="account" value="Fill in your bank account" onclick="this.value=\'\'" /> <input type="hidden" name="invoice" value="'.$params['invoiceid'].'" /> <input type="hidden" name="client" value="'.$params['clientdetails']['id'].'" /> <input type="fieldarea" /> <textarea name="field[instructions]" cols="60" rows=""> </textarea> <input type="submit" value="Request payment" /> </form>'; <input type="submit" value="Request payment" /> You need to set this section to what you want: Try function vssmsoffline_link($params) { $code = '<form method="post"" action="/modules/gateways/vssmsoffline.php"> <input type="input" name="account" value="Fill in your bank account" onclick="this.value=\'\'" /> <input type="hidden" name="invoice" value="'.$params['invoiceid'].'" /> <input type="hidden" name="client" value="'.$params['clientdetails']['id'].'" /> <input type="fieldarea" /> <textarea name="field[instructions]" cols="60" rows=""> </textarea> <input type="submit" value="Przelew bankowy" /> </form>'; Cant promise, but it looks right here 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.