Added registration and paypal payment
This commit is contained in:
18
application/views/redirection/new.php
Normal file
18
application/views/redirection/new.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<form class="form-inline" method="POST" action="redirection/post">
|
||||
<fieldset>
|
||||
<legend>Create New Short Cut</legend>
|
||||
<select id="domain" class="span2" name="domain" class="input-medium">
|
||||
<?php foreach ($domains as $do): ?>
|
||||
<option><?php echo $do->domain; ?></option>
|
||||
<?php endforeach ?>
|
||||
</select>
|
||||
<label>/</label>
|
||||
<input type="text" class="span3" id="path" name="path" placeholder="path" pattern="[A-Za-z0-9]*" required>
|
||||
<div class="control-group">
|
||||
<span class="help-block" id="help-path">What short cut would you like to create?</span>
|
||||
</div>
|
||||
<input type="text" class="span5" id="url" name="url" placeholder="URL" pattern="[^\s]*" required>
|
||||
<span class="help-block" id="help-url">To point to which URL?</span>
|
||||
<button type="submit" class="btn" disabled>Submit</button>
|
||||
</fieldset>
|
||||
</form>
|
16
application/views/redirection/post.php
Normal file
16
application/views/redirection/post.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<form class="form-inline" method="POST" action="<?php echo $posturl; ?>">
|
||||
<fieldset>
|
||||
<legend>New Short Cut</legend>
|
||||
<p class="text-success"><?php printf('%s/%s',$domain,$path); ?> redirected to <?php echo $url; ?></p>
|
||||
<select id="amount_1" class="span2" name="amount_1" class="input-medium">
|
||||
<?php foreach ($price as $k => $v): ?>
|
||||
<option value="<?php echo $v; ?>"><?php printf('%s %s',$k,$v); ?></option>
|
||||
<?php endforeach ?>
|
||||
</select>
|
||||
<?php foreach ($posthidden as $k => $v): ?>
|
||||
<input type="hidden" name="<?php echo $k; ?>" value="<?php echo $v; ?>">
|
||||
<?php endforeach ?>
|
||||
|
||||
<button type="submit" class="btn btn-primary">Paypal</button>
|
||||
</fieldset>
|
||||
</form>
|
Reference in New Issue
Block a user