Changeset 733561
- Timestamp:
- 06/28/2013 02:30:32 PM (13 years ago)
- Location:
- melascrivi/trunk
- Files:
-
- 4 edited
-
admin.php (modified) (19 diffs)
-
admin_init.php (modified) (1 diff)
-
melascrivi_php_client/MelascriviPlugin.php (modified) (9 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
melascrivi/trunk/admin.php
r732702 r733561 15 15 define("WP_DB_NAME_MELASCRIVI_ACTKEY","WP_DB_NAME_MELASCRIVI_ACTKEY"); 16 16 17 define("PLUGIN_VERSION","1.0. 8");17 define("PLUGIN_VERSION","1.0.9"); 18 18 19 19 function melascriviPlugin_init() { … … 276 276 <div class="section" style="width: 100%; height: 100%; position: relative;"> 277 277 <?php echo $melascrivi->printWaitGif();?> 278 <div style="float:right;padding:5px;" ><?php _e("search","melascrivi"); ?>:<input onkeypress="searchMela();" type="text" id="search"/> </div> 279 <div id="allOrderList"> 280 </div> 278 <table style="width:100%"> 279 <tr> 280 <td> 281 <div style="float:right;padding:5px;" ><?php _e("search","melascrivi"); ?>:<input onkeypress="searchMela();" type="text" id="search"/> </div> 282 </td> 283 </tr> 284 <tr> 285 <td> 286 <div id="allOrderList"> 287 </div> 288 </td> 289 </tr> 290 </table> 281 291 </div> 282 292 <div style="left: 75%; position: relative; padding: 10px;"> … … 314 324 function melascrivi_show_article(){ 315 325 melascrivi_wp_js_load(); 326 316 327 ?> 317 328 <div id="melaInit" style="width:100%;"> … … 348 359 jQuery("#genericErrorMsgBox").notify(); 349 360 jQuery("#genericSuccessMsgBox").notify(); 350 viewMessageBox(\'genericErrorMsgBox\',"'. __("error","melascrivi").'","'. __("article in wrong status","melascrivi").'", false);361 viewMessageBox(\'genericErrorMsgBox\',"'. __("error","melascrivi").'","'. __("article in wrong status","melascrivi").'",5000); 351 362 352 363 }); … … 358 369 jQuery("#genericErrorMsgBox").notify(); 359 370 jQuery("#genericSuccessMsgBox").notify(); 360 viewMessageBox(\'genericErrorMsgBox\',"'. __("error","melascrivi").'","'. __("generic error","melascrivi").'", false);371 viewMessageBox(\'genericErrorMsgBox\',"'. __("error","melascrivi").'","'. __("generic error","melascrivi").'",5000); 361 372 362 373 }); … … 368 379 jQuery("#genericErrorMsgBox").notify(); 369 380 jQuery("#genericSuccessMsgBox").notify(); 370 viewMessageBox(\'genericErrorMsgBox\',"'. __("error","melascrivi").'","'. __("article is copied","melascrivi").'", false);381 viewMessageBox(\'genericErrorMsgBox\',"'. __("error","melascrivi").'","'. __("article is copied","melascrivi").'",5000); 371 382 372 383 }); … … 378 389 jQuery("#genericErrorMsgBox").notify(); 379 390 jQuery("#genericSuccessMsgBox").notify(); 380 viewMessageBox(\'genericErrorMsgBox\',"'. __("error","melascrivi").'","'. __("article is not your","melascrivi").'", false);391 viewMessageBox(\'genericErrorMsgBox\',"'. __("error","melascrivi").'","'. __("article is not your","melascrivi").'",5000); 381 392 382 393 }); … … 385 396 break; 386 397 } 387 die();398 388 399 } 389 400 break; … … 407 418 jQuery("#genericErrorMsgBox").notify(); 408 419 jQuery("#genericSuccessMsgBox").notify(); 409 viewMessageBox(\'genericErrorMsgBox\',"'. __("error","melascrivi").'","'. __("article in wrong status","melascrivi").'", false);420 viewMessageBox(\'genericErrorMsgBox\',"'. __("error","melascrivi").'","'. __("article in wrong status","melascrivi").'",5000); 410 421 411 422 }); … … 417 428 jQuery("#genericErrorMsgBox").notify(); 418 429 jQuery("#genericSuccessMsgBox").notify(); 419 viewMessageBox(\'genericErrorMsgBox\',"'. __("error","melascrivi").'","'. __("article is not your","melascrivi").'", false);430 viewMessageBox(\'genericErrorMsgBox\',"'. __("error","melascrivi").'","'. __("article is not your","melascrivi").'",5000); 420 431 421 432 }); … … 424 435 break; 425 436 } 426 die();427 437 } 428 438 break; … … 446 456 jQuery("#genericErrorMsgBox").notify(); 447 457 jQuery("#genericSuccessMsgBox").notify(); 448 viewMessageBox(\'genericErrorMsgBox\',"'. __("error","melascrivi").'","'. __("article is not your","melascrivi").'", false);458 viewMessageBox(\'genericErrorMsgBox\',"'. __("error","melascrivi").'","'. __("article is not your","melascrivi").'",5000); 449 459 450 460 }); … … 452 462 453 463 break; 454 } 455 die(); 464 465 } 466 456 467 } 457 468 … … 670 681 </div> 671 682 <?php 672 } 683 }else 684 echo "no order id".var_export($_REQUEST); 673 685 ?> 674 686 </div> … … 1194 1206 <div style="width: 100%; height: 100%; position: relative;"> 1195 1207 <?php echo $melascrivi->printWaitGif();?> 1196 <div style="float:right;padding:5px;" ><?php _e("search","melascrivi"); ?>:<input onkeypress="searchMela();" type="text" id="search"/> </div> 1197 <div id="projectsList"> 1198 </div> 1208 <table style="width:100%;"> 1209 <tr> 1210 <td> 1211 <div style="float:right;padding:5px;" ><?php _e("search","melascrivi"); ?>:<input onkeypress="searchMela();" type="text" id="search"/> </div> 1212 </td> 1213 </tr> 1214 <tr> 1215 <td> 1216 <div id="projectsList"> 1217 </div> 1218 </td> 1219 </tr> 1220 </table> 1199 1221 </div> 1200 1222 <div style="left: 75%; position: relative; padding: 10px;"> … … 1463 1485 } 1464 1486 1487 #loading-container 1488 { 1489 width: 100%; 1490 height: 100%; 1491 position: absolute; 1492 background-color: rgba(255,255,255,0.5); 1493 top: 0; 1494 left: 0; 1495 } 1465 1496 </style> 1466 1497 … … 1482 1513 1483 1514 function sendActionRequest(type){ 1515 1484 1516 if(type == "createOrders"){ 1517 jQuery("#loading-container").show(); 1485 1518 if(jQuery("#articlesTable").dataTable().fnGetNodes().length < 1){ 1486 1519 viewMessageBox("genericErrorMsgBox","<?php _e("error","melascrivi");?>","<?php _e("error empty orders table","melascrivi");?>",5000); … … 1492 1525 values["article"+i] = {projectId: row[0], guidelineId: row[1], qualityId: row[2], description: row[3], deadline: row[4], circle: row[5], features: row[6],title: jQuery(row[7]).html(),special:row[9]}; 1493 1526 } 1494 jQuery("#loading").fadeIn();1495 1527 jQuery.post(ajaxurl, jQuery.param(values), function(data){ 1496 1528 var msg = jQuery.trim(data); … … 1519 1551 viewMessageBox("genericErrorMsgBox","<?php _e("error","melascrivi");?>","<?php _e("profile not complete","melascrivi");?>",5000); 1520 1552 } 1521 jQuery("#loading-container").hide(); 1522 } 1553 1554 } 1555 jQuery("#loading-container").hide(); 1523 1556 }); 1524 1557 } -
melascrivi/trunk/admin_init.php
r732702 r733561 174 174 function getBalance(){ 175 175 $melascrivi=new MelascriviPlugin(); 176 $userId=loginMelascrivi($melascrivi);177 176 try{ 177 $userId=loginMelascrivi($melascrivi); 178 178 $echo=$melascrivi->getBalance($userId); 179 179 }catch(Exception $e){ -
melascrivi/trunk/melascrivi_php_client/MelascriviPlugin.php
r732702 r733561 540 540 $echo.="<td style='text-align:center;'>".$order->qualityName."</td>"; 541 541 542 $echo.="<td style='text-align:center;'>".$order-> date."</td>";542 $echo.="<td style='text-align:center;'>".$order->lastStatusDate."</td>"; 543 543 $echo.="<td style='text-align:center;'>".__("s".$order->status,$this->getName())."</td>"; 544 544 … … 617 617 }); 618 618 } 619 setInterval(updateBalance,1 0000);619 setInterval(updateBalance,15000); 620 620 </script> 621 621 <div id='deposits' style='color:$color;white-space: nowrap;' ><b>".__("balance",$this->getName()).":</b> <span id='balanceValue'>".$result."</span> ".$conf->valute."</div>"; … … 1175 1175 price = parseFloat(jQuery("#totalOrdersCost").html()) - parseFloat(price); 1176 1176 price = Math.round((price*100)+0.4) / 100; 1177 jQuery(elem).parent s("TR").fadeOut("slow", function () {1177 jQuery(elem).parent().parent().fadeOut("slow", function () { 1178 1178 var pos = jQuery("#articlesTable").dataTable().fnGetPosition(this); 1179 1179 jQuery("#articlesTable").dataTable().fnDeleteRow(pos); … … 1202 1202 </script> 1203 1203 1204 <section id="createOrderTab" class="clearfix" style="min-height:304px; min-width:1080px; "> 1205 <div class="left-box" style=" float:left;width:52%; min-width:510px;margin:10px;"> 1204 <section id="createOrderTab" class="clearfix" style="min-height:304px; min-width:1080px;"> 1205 <table style="width:98%"> 1206 <tr><td valign="top"> 1207 1208 <div class="left-box" style=" min-width:510px;margin:10px;"> 1206 1209 <!-- BOX FORM CREAZIONE ORDINE --> 1207 1210 <section class="portlet grid_6 leading" style="width:100%;"> … … 1315 1318 </div> 1316 1319 </section> 1317 </div>'; 1318 1319 $echo.='<!-- BOX DETTAGLI ORDINE --> 1320 </div> 1321 </td>'; 1322 1323 $echo.=' 1324 <td valign="top" style="width:40%;" ><!-- BOX DETTAGLI ORDINE --> 1320 1325 <style> 1321 1326 .ar{ … … 1323 1328 } 1324 1329 </style> 1325 <div class="right-box" style=" float:left;margin:10px;/*width:45%;*/">1330 <div class="right-box" style="margin:10px;/*width:45%;*/"> 1326 1331 <section class="portlet grid_6 leading"> 1327 1332 <header> … … 1394 1399 <button id="sendOrdersBtn" type="button" class="mela" style=" height:50px; width:100%; font-size: 16px; font-weight: bold;" title="'.__("send orders",$this->getName()).'" onclick="sendActionRequest(\'createOrders\');">'.__("send orders",$this->getName()).'</button> 1395 1400 </div> 1396 1397 </section>'.$this->messageBox(); 1401 </td> 1402 </tr> 1403 </table> 1404 </section>'.$this->messageBox(); 1398 1405 1399 1406 return $echo; … … 2007 2014 function printPaypalRecharge($userId){ 2008 2015 $conf=$this->getConfiguration($userId); 2016 $current_url=$_SERVER['REQUEST_URI']; 2017 $tmp=explode("?",$current_url); 2018 $current_url=$tmp[0]; 2009 2019 $echo='<script> 2010 2020 function submitPaypal(){ … … 2056 2066 <input type="hidden" name="no_shipping" value="1"> 2057 2067 <input type="hidden" name="rm" value="1"> 2058 <input type="hidden" name="return" value="http://'.$_SERVER['HTTP_HOST'].$ _SERVER['PHP_SELF'].'?page=melascrivi-balance&response=success">2059 <input type="hidden" name="cancel_return" value="http://'.$_SERVER['HTTP_HOST'].$ _SERVER['PHP_SELF'].'?page=melascrivi-balance&response=error">2068 <input type="hidden" name="return" value="http://'.$_SERVER['HTTP_HOST'].$current_url.'?page=melascrivi-balance&response=success"> 2069 <input type="hidden" name="cancel_return" value="http://'.$_SERVER['HTTP_HOST'].$current_url.'?page=melascrivi-balance&response=error"> 2060 2070 <input type="hidden" name="currency_code" value="'. $conf->paypal->currency.'"> 2061 2071 <input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted"> -
melascrivi/trunk/readme.txt
r732702 r733561 13 13 == Description == 14 14 15 This plugin allow to manage the order on the Melascrivi or hotype marketplace and allow to request, read and publish them.15 This plugin include in the Wordpress Dashboard all the services of Melascrivi.com and Hotype.co.uk. Every WP blog owner will be able to ask, review, accept and then publish unique contents on his website. Simple and strongly recommended for SEO needs. 16 16 17 17 == Installation == … … 37 37 == Screenshots == 38 38 39 1. You can ask for articles for your blogs direcly on wp admin panel. 40 2. You can review the requested articles and manage them directly on the wp admin panel. 41 39 42 == Changelog == 43 44 = 1.0.9 = 45 * bug fixing 40 46 41 47 = 1.0.8 =
Note: See TracChangeset
for help on using the changeset viewer.