Merged in feature/from-pantheon (pull request #16)
code from pantheon * code from pantheon
This commit is contained in:
49
wp/wp-content/plugins/iper-medical/admin-cron.php
Normal file
49
wp/wp-content/plugins/iper-medical/admin-cron.php
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: Fabrizio Pera
|
||||
* Company: Iperdesign SNC
|
||||
* URL: http://www.iperdesign.com/it/
|
||||
* Date: 12/02/16
|
||||
* Time: 18:31
|
||||
*/
|
||||
?>
|
||||
<br><br><br>
|
||||
<div>
|
||||
<h1>Sync Product with SalesForce</h1>
|
||||
<button id="btSendCron" class="button button-primary">Sync now</button> <span style="line-height: 28px; margin-left: 15px;" id="cronMSG"></span><br><br>
|
||||
<textarea id="iper_print_debug_cron" rows="10" style="width: 80%;"></textarea>
|
||||
</div>
|
||||
<br><br><br>
|
||||
<div>
|
||||
<h1>Sync Campaign with SalesForce</h1>
|
||||
<button id="btSendCronC" class="button button-primary">Sync now</button> <span style="line-height: 28px; margin-left: 15px;" id="cronMSGC"></span><br><br>
|
||||
<textarea id="iper_print_debug_cronC" rows="10" style="width: 80%;"></textarea>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function(){
|
||||
jQuery("#btSendCron").click(function(e){
|
||||
jQuery("#cronMSG").html("Waiting, sync in progress...");
|
||||
jQuery("#btSendCron").attr("disabled","disabled");
|
||||
e.preventDefault();
|
||||
jQuery.get("<?php echo get_bloginfo('wpurl');?>/iper_cron",{},function(data){
|
||||
jQuery("#iper_print_debug_cron").val(data).html(data);
|
||||
jQuery("#btSendCron").removeAttr("disabled");
|
||||
jQuery("#cronMSG").html("");
|
||||
});
|
||||
});
|
||||
});
|
||||
jQuery(function(){
|
||||
jQuery("#btSendCronC").click(function(e){
|
||||
jQuery("#cronMSGC").html("Waiting, sync in progress...");
|
||||
jQuery("#btSendCronC").attr("disabled","disabled");
|
||||
e.preventDefault();
|
||||
jQuery.get("<?php echo get_bloginfo('wpurl');?>/iper_cron?t=c",{},function(data){
|
||||
jQuery("#iper_print_debug_cronC").val(data).html(data);
|
||||
jQuery("#btSendCronC").removeAttr("disabled");
|
||||
jQuery("#cronMSGC").html("");
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user