| 1 |
<?php |
| 2 |
?> |
| 3 |
<h1 class="pageTitlte">Network: <?php echo esc_html($networkInfo['network_title']); ?></h1><br> |
| 4 |
<small>Submit your application</small><br><br><br> |
| 5 |
<form id ='createForm' method="POST"> |
| 6 |
<label for="feedUrl"><b>Feed URL</b></label><br> |
| 7 |
<input type="url" id ="feedUrl" name="feedUrl" placeholder="Type in the URL feed you want to add" <?php if (isset($props['program_rssurl'])) echo 'readonly value=\''.esc_html($props['program_rssurl']).'\' ';?>><br> |
| 8 |
<button id="findProgram" onclick="directStatus('Submit App', 'createForm', true)">Find</button> |
| 9 |
<a class="warningButton" href="<?php echo admin_url("admin.php?page=". urlencode(powerpress_admin_get_page()) ."&status=List+Applicants"); ?>"> |
| 10 |
<p><?php echo '← ' . esc_html(__('Cancel', 'powerpress-network'));?></p></a> |
| 11 |
<div id="addInfo"> |
| 12 |
<label for="listIdForApp"><b>List</b></label><br> |
| 13 |
<select name="listIdForApp"> |
| 14 |
<?php |
| 15 |
|
| 16 |
for ($i = 0; $i < count($props['list']); ++$i){ |
| 17 |
?> |
| 18 |
<option value = <?php echo esc_html($props['list'][$i]['list_id']); ?>> <?php echo esc_html($props['list'][$i]['list_title']); ?> |
| 19 |
<?php |
| 20 |
} |
| 21 |
?> |
| 22 |
</select><br> |
| 23 |
<label for="appLabel"><b>App Label</b></label> |
| 24 |
<input id="appLabel" name="appLabel" type="text" value=""><br> |
| 25 |
<input name="programIdForApp" value="<?php echo esc_html($props['program_id']);?>" hidden disable> |
| 26 |
<button type="submit" id="saveButton" onclick ="directStatus('List Applicants', 'createForm', true)">Apply</button> |
| 27 |
<a class="warningButton" href="<?php echo admin_url("admin.php?page=". urlencode(powerpress_admin_get_page()) ."&status=List+Applicants"); ?>"> |
| 28 |
<p><?php echo __('← Cancel', 'powerpress-network');?></p></a> |
| 29 |
</div> |
| 30 |
</form> |
| 31 |
|
| 32 |
<script> |
| 33 |
if (!jQuery(function($){ $('#feedUrl').is('[readonly]')})) |
| 34 |
jQuery(function($){ $('#addInfo').remove()}); |
| 35 |
else { |
| 36 |
jQuery(function($){ $('#findProgram').remove()}); |
| 37 |
jQuery(function($){ $('#backProgram').remove()}); |
| 38 |
} |
| 39 |
</script> |
| 40 |
|
| 41 |
|
| 42 |
|