Plugin Directory

Changeset 733561


Ignore:
Timestamp:
06/28/2013 02:30:32 PM (13 years ago)
Author:
melascrivi
Message:

commit version

Location:
melascrivi/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • melascrivi/trunk/admin.php

    r732702 r733561  
    1515define("WP_DB_NAME_MELASCRIVI_ACTKEY","WP_DB_NAME_MELASCRIVI_ACTKEY");
    1616
    17 define("PLUGIN_VERSION","1.0.8");
     17define("PLUGIN_VERSION","1.0.9");
    1818
    1919function melascriviPlugin_init() {
     
    276276            <div class="section" style="width: 100%; height: 100%; position: relative;">
    277277                <?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>
    281291            </div>
    282292            <div style="left: 75%; position: relative; padding: 10px;">
     
    314324function melascrivi_show_article(){   
    315325melascrivi_wp_js_load();
     326
    316327?>
    317328    <div id="melaInit" style="width:100%;">
     
    348359                            jQuery("#genericErrorMsgBox").notify();
    349360                            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);
    351362                       
    352363                        });
     
    358369                            jQuery("#genericErrorMsgBox").notify();
    359370                            jQuery("#genericSuccessMsgBox").notify();
    360                             viewMessageBox(\'genericErrorMsgBox\',"'. __("error","melascrivi").'","'. __("generic error","melascrivi").'",false);
     371                            viewMessageBox(\'genericErrorMsgBox\',"'. __("error","melascrivi").'","'. __("generic error","melascrivi").'",5000);
    361372                       
    362373                        });
     
    368379                            jQuery("#genericErrorMsgBox").notify();
    369380                            jQuery("#genericSuccessMsgBox").notify();
    370                             viewMessageBox(\'genericErrorMsgBox\',"'. __("error","melascrivi").'","'. __("article is copied","melascrivi").'",false);
     381                            viewMessageBox(\'genericErrorMsgBox\',"'. __("error","melascrivi").'","'. __("article is copied","melascrivi").'",5000);
    371382                       
    372383                        });
     
    378389                            jQuery("#genericErrorMsgBox").notify();
    379390                            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);
    381392                       
    382393                        });
     
    385396                break;
    386397                }
    387                 die();
     398               
    388399            }
    389400        break;
     
    407418                            jQuery("#genericErrorMsgBox").notify();
    408419                            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);
    410421                       
    411422                        });
     
    417428                            jQuery("#genericErrorMsgBox").notify();
    418429                            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);
    420431                       
    421432                        });
     
    424435                break;
    425436                }
    426                 die();
    427437            }
    428438        break;
     
    446456                            jQuery("#genericErrorMsgBox").notify();
    447457                            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);
    449459                       
    450460                        });
     
    452462                   
    453463                break;
    454                 }
    455                 die();
     464               
     465                }
     466               
    456467            }
    457468           
     
    670681    </div>
    671682    <?php
    672     }
     683    }else
     684        echo "no order id".var_export($_REQUEST);
    673685    ?>
    674686    </div>
     
    11941206        <div style="width: 100%; height: 100%; position: relative;">
    11951207                <?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>
    11991221            </div>
    12001222            <div style="left: 75%; position: relative; padding: 10px;">
     
    14631485        }
    14641486
     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        }
    14651496    </style>
    14661497
     
    14821513   
    14831514        function sendActionRequest(type){
     1515       
    14841516        if(type == "createOrders"){
     1517            jQuery("#loading-container").show();
    14851518            if(jQuery("#articlesTable").dataTable().fnGetNodes().length < 1){
    14861519                viewMessageBox("genericErrorMsgBox","<?php _e("error","melascrivi");?>","<?php _e("error empty orders table","melascrivi");?>",5000);
     
    14921525                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]};
    14931526            }
    1494             jQuery("#loading").fadeIn();
    14951527            jQuery.post(ajaxurl, jQuery.param(values), function(data){
    14961528                var msg = jQuery.trim(data);
     
    15191551                        viewMessageBox("genericErrorMsgBox","<?php _e("error","melascrivi");?>","<?php _e("profile not complete","melascrivi");?>",5000);
    15201552                    }
    1521                     jQuery("#loading-container").hide();
    1522                 }
     1553                   
     1554                }
     1555                jQuery("#loading-container").hide();
    15231556            });
    15241557        }
  • melascrivi/trunk/admin_init.php

    r732702 r733561  
    174174function getBalance(){
    175175    $melascrivi=new MelascriviPlugin();
    176     $userId=loginMelascrivi($melascrivi);
    177176    try{
     177        $userId=loginMelascrivi($melascrivi);
    178178        $echo=$melascrivi->getBalance($userId);
    179179    }catch(Exception $e){
  • melascrivi/trunk/melascrivi_php_client/MelascriviPlugin.php

    r732702 r733561  
    540540                $echo.="<td style='text-align:center;'>".$order->qualityName."</td>";
    541541               
    542                 $echo.="<td style='text-align:center;'>".$order->date."</td>";
     542                $echo.="<td style='text-align:center;'>".$order->lastStatusDate."</td>";
    543543                $echo.="<td style='text-align:center;'>".__("s".$order->status,$this->getName())."</td>";
    544544               
     
    617617                });
    618618            }
    619             setInterval(updateBalance,10000);
     619            setInterval(updateBalance,15000);
    620620        </script>
    621621        <div id='deposits' style='color:$color;white-space: nowrap;' ><b>".__("balance",$this->getName()).":</b> <span id='balanceValue'>".$result."</span> ".$conf->valute."</div>";
     
    11751175        price = parseFloat(jQuery("#totalOrdersCost").html()) - parseFloat(price);
    11761176        price = Math.round((price*100)+0.4) / 100;
    1177         jQuery(elem).parents("TR").fadeOut("slow", function () {
     1177        jQuery(elem).parent().parent().fadeOut("slow", function () {
    11781178            var pos = jQuery("#articlesTable").dataTable().fnGetPosition(this);
    11791179            jQuery("#articlesTable").dataTable().fnDeleteRow(pos);
     
    12021202        </script>
    12031203       
    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;">
    12061209                    <!-- BOX FORM CREAZIONE ORDINE -->
    12071210                    <section class="portlet grid_6 leading" style="width:100%;">
     
    13151318                        </div>
    13161319                    </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 -->
    13201325                <style>
    13211326                .ar{
     
    13231328                }
    13241329                </style>
    1325                 <div class="right-box" style="float:left;margin:10px;/*width:45%;*/">
     1330                <div class="right-box" style="margin:10px;/*width:45%;*/">
    13261331                    <section class="portlet grid_6 leading">
    13271332                        <header>
     
    13941399                <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>
    13951400                </div>
    1396                
    1397             </section>'.$this->messageBox();
     1401            </td>
     1402        </tr>
     1403    </table>           
     1404 </section>'.$this->messageBox();
    13981405           
    13991406        return $echo;
     
    20072014    function printPaypalRecharge($userId){
    20082015        $conf=$this->getConfiguration($userId);
     2016        $current_url=$_SERVER['REQUEST_URI'];
     2017        $tmp=explode("?",$current_url);
     2018        $current_url=$tmp[0];
    20092019        $echo='<script>
    20102020        function submitPaypal(){
     
    20562066            <input type="hidden" name="no_shipping" value="1">
    20572067            <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">
    20602070            <input type="hidden" name="currency_code" value="'. $conf->paypal->currency.'">
    20612071            <input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted">
  • melascrivi/trunk/readme.txt

    r732702 r733561  
    1313== Description ==
    1414
    15 This plugin allow to manage the order on the Melascrivi or hotype marketplace and allow to request, read and publish them.
     15This 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.
    1616
    1717== Installation ==
     
    3737== Screenshots ==
    3838
     391. You can ask for articles for your blogs direcly on wp admin panel.
     402. You can review the requested articles and manage them directly on the wp admin panel.
     41
    3942== Changelog ==
     43
     44= 1.0.9 =
     45* bug fixing
    4046
    4147= 1.0.8 =
Note: See TracChangeset for help on using the changeset viewer.