Wrexs's Posts
Nairaland Forum › Wrexs's Profile › Wrexs's Posts
1 2 (of 2 pages)
We are not bound by FOI Act – NNPC The Nigerian National Petroleum Corporation (NNPC) is not bound by the Freedom of Information Act (FOI), its Secretary and Legal Adviser, Anthony C. Madichie, has said. The government-owned corporation disclosed this in a letter, while responding to Daily Trust’s request for information concerning its recent recruitment in line with the FOI Act. FOI Act was signed into law by President Goodluck Jonathan on May 28, 2011 to make access to public information easy. In January 29, 2012, the office of Attorney General and Minister of Justice, Mohammed Bello Adoke, SAN, issued implementation guidelines through a circular titled: “Implementation of the Freedom of Information Act 2011 and the Reporting Requirements under Section 29 thereof (HAGF/MDAS/FOIA/2012/I), to all government ministries, departments, agencies and corporations for implementation.” In a letter dated July 12, 2012 and addressed to the Group Managing Director of the NNPC, Daily Trust wrote: “In line with provisions of the Freedom of Information Act, 2011, we hereby request you to furnish us with the details of the just concluded recruitment exercise conducted by the corporation as follows: ... http://public-announcement..com/ |
Islamists in northern Mali have stoned an unmarried couple to death, the first reported sharia killing since they occupied the area, ratcheting up pressure on an embattled interim government. The execution came as interim President Dioncounda Traore finalised a unity government which foreign partners have demanded be formed by Tuesday to take decisive action against the jihadists who have cleaved the nation in two. As politicians grappled for solutions in Bamako and west African capitals, the al Qaeda linked Islamists grew bolder, dragging a rural couple to the centre of the town of Aguelhok Sunday for a public stoning. "I was there. The Islamists took the unmarried couple to the centre of Aguelhok. The couple was placed in two holes and the Islamists stoned them to death," said a local government official on condition of anonymity. "The woman fainted after ...[url]public-announcement..com[/url] |
Lagos State Commissioner of Police, Umar Manko, on Monday afternoon, paraded 19 suspects before newsmen. Oludare Oladodoyen, member of staff of a new generation bank, was arrested with 19 automated teller machine (ATM) cards belonging to another new generation bank The suspect was arrested at the Ogba Agege branch of one of the new generations banks while trying to make a withdrawal with one of the ATM cards. The police commissioner stated that the sum of ... http://public-announcement..com |
The Federal Government has commenced moves to end the protracted delays in the reconstruction of the Lagos-Ibadan Expressway by the concessionaire, Bi-Courtney Highway Services, with the appointment of an international firm as the transaction adviser and setting up of two committees to actualise the project.www.punchng.com/business/homes-property/fg-inaugurates-committees-on-lagos-ibadan-expressway/ |
Pastor Tunde Bakare's sermon this week continues on how to make our country a better place for all....he is toning up the demand for good governance, and not toning it down as demanded by the authorities.....Enjoy.... How To Change Government Peacefully: Social Mobility Is No Longer Frozen In Nigeria By Pastor Tunde Bakare July 29, 2012 - 15:29 Last Sunday, we looked at the subject: HOW TO CHANGE GOVERNMENT PEACEFULLY AND MAKE SOCIETY BETTER. That message was delivered in a lecture format in this auditorium. Unknown to many, I was originally scheduled to leave the country that night for an engagement in the U.K., but I was restrained by the Holy Spirit to stay behind because men of the State Security Service (SSS) would come for me, and if they were to find out I left the night before, they would assume we have a pattern of preaching and leaving the country almost immediately; more so when their last invitation came after I had left the country. I therefore stayed put, and, true to type, they showed up at my house in the pursuit of their legitimate duties the following day, Monday, the 23rd of July, 2012, at about noon. I would have ignored the whole episode and moved on to other things today but for the need to clarify some issues and to share the vital lessons we can glean from the SSS episode as well as other matters that cropped up following my visit to the State Security Service department. Let me deal with the lessons first. LESSON #1: God knows what we do not know, and, when we cannot trace Him, we must trust Him. It is clear to me that in these perilous times, we need hearing ears, seeing eyes, and obedient hearts more than ever before. Someone may ask: How did you know that the State Security Service would come the next day? The answer is simple: God told me, and that was neither the first time, nor is it likely to be the last. I recall a crusade we held in Ilaro in the nineties (90s). I woke up early to pray at the hotel we were staying and, in the course of prayer, the Holy Spirit said to me, “Get ready, SSS men are on their way.” I turned to my wife and told her, “Make me a cup of tea quickly; men of the SSS are on their way here.” She did and I had scarcely finished drinking the tea when there was a knock on the door. Guess who knocked – Men of the SSS. I followed them and they asked me to stop the crusade because of the surge of the crowd. I responded that it was not the surge of the crowd that was their concern but the ancient gods of the Yewa people and the devils I attacked publicly. I told them: “I have the ... http://public-announcement..com http://public-announcement..com |
A sound and competent computer instructor need for immediate employment. Interested person should apply in person with copy of CV to: 15, Ijaiye Road, Opposite Nigeria Institute of Journalism (beside WAEC office) - Ogba. Or call 08024717179 for further info. Regards. |
A sound and competent computer instructor needed for immediate employment. Interested person should apply in person with copy of CV to: 15, Ijaiye Road, Opposite Nigeria Institute of Journalism (beside WAEC office) - Ogba. Or call 08024717179 for further info. Regards. |
I contacted them by mail since they normally send me Payment confirmation. There is no big deal about it. Just reach them and tell them You are trying to send mail using outlook and it keep reporting that they (your ISP) blocked your SMTP port. They will reply you confirming that it is blocked by default as directed by EFCC blablabla, and they will request you to send the documents I stated before as a requirement for them to enable it for you. Best of lucks. |
Most Nigerian ISPs block SMTP port by default. You have to contact them to enable it for you. I once did it with IPNX and I was required to present a 1. A request letter 2. A means of identification (International Passport/Drivers' licence) 3. A utility Bill 4. If a corporate institution, copy of your CAC certificate. I submitted those, and it was enabled for me. I hope thats helpful. Cheers! |
My idea of a New Internet Café is one that starts up with a good Internet Service Provider even though most of the ISPs cannot be 100% reliable, but some of them provide about 90% service reliability; and a reliable Power Backup system. The strength of an Internet café is in the speed of the internet service being provided and the Power backup system, while its success lies in its consistency. Over time, I have seen Internet cafés startup with the basic facilities; Good computers, Good internet service and reliable Power backup system. These facilities naturally attract customers, depending on the location and competition in the area. As a startup business, it grows with time and on a daily basis. And as the days goes by, the business start reflecting SUCCESS. THE FLOP As the day goes on, the business tend to maintain a constant upward trend. The flop starts coming in when the natural tendencies, (wear and tear) sets in without any attention been given to it. Naturally, computers (actually, Machines) start malfunctioning after been used for some time without maintenance, especially for commercial purpose, and also the Power backup system (UPS) failing too. So, when these begin to happen, and continues for a while with customers complaining, and some grumble. Still the failures persist, and the customers start looking elsewhere. Soon the café’s account begins a reverse (downward) trend. I have noticed that the Café owners don’t always seem to see the flaws in their facility as the cause for the low sales, instead they begin to see the business as obsolete and decide to find a way of cutting cost. The first thing they always is consider is the ISP cost. They end up with a cheap ISP service that helps them sustain the level they have fallen to. As anticipated, the business is now going fine at “that level”, but another upset pops up when the cheap ISP starts showing off why they are cheap. At this point, frustration starts setting in, they either sort another cheap ISP or decide to switch business. This is a process that span between 18 to 24months. |
Any landlord in Lagos State who collects rent in excess of one year in advance from a new tenant would be prosecuted by the state government and upon conviction face three years in jail. This is contained in the new tenancy bill that was passed into law by the State House of Assembly today. The law, which is expected to receive the assent of Governor Babatunde Fashola any moment from now, also stipulates that it is unlawful and criminal for a landlord or his agent to demand or receive from a sitting tenant, rent in excess of six months in respect of any premises without prejudice to the nature of tenancy. This means that those who are already tenants are not expected to pay more than six months in advance to their landlord. Hitherto, tenants were compelled to pay for even more than two years in some , http://247nigerianewsupdate.com/?p=2101 |
2-Year Rent Banned In Lagos, Assembly Passes Tenancy Law: Any landlord in Lagos State who collects rent in excess of one year in advance from a new tenant would be prosecuted by the state government and upon conviction face three years in jail. This is contained in the new tenancy bill that was passed into law by the State House of Assembly today. The law, which is expected to receive the assent of Governor Babatunde Fashola any moment from now, also stipulates that it is unlawful and criminal for a landlord or his agent to demand or receive from a sitting tenant, rent in excess of six months in respect of any premises without prejudice to the nature of tenancy. This means that those who are already tenants are not expected to pay more than six months in advance to their landlord. Hitherto, tenants were compelled to pay for even more than two years in some , http://247nigerianewsupdate.com/?p=2101 |
Hello Guys, I apologise for not returning with any feed back. 1. My posting rights was disabled, 2. I went out of town for some stuffs. @yawa, thanks for getting the codes back on the page. I have just begin combing the codes one, and what I am actually doing is replace all the image/file extension (i.e., like .pdf, .jpg, e.tc) with media extension (eg. .mp3, .m4a, e.t.c) The codes are quite long and applies to 3 other pages so am taking it slow and easy. I hope to get it fixed by tomorrow. I will update you guys when am done. Thanks for all your suggestions! |
Thanks bro, I think you should take a look at the code; <script language="javascript"> function filecheckerrors() { if(document.getElementById("file_title" .value==0){ alert("Please enter the File name" ;document.getElementById("file_title" .focus();return false; } if(document.getElementById("file_price" .value==0){ alert("Please enter the File price" ;document.getElementById("file_price" .focus();return false; } if(isNaN(document.getElementById("file_price" .value)){ alert("File price contains numeric value" ;document.getElementById("file_price" .focus();return false; } if(document.getElementById("file_description" .value==0){ alert("Please enter the File description" ;document.getElementById("file_description" .focus();return false; } if(document.getElementById("updatefileid" .value==0){ if(document.getElementById("files_thumb" .value==0){ alert("Please enter your thumbnail from browse" ;document.getElementById("files_thumb" .focus();return false; } if(document.getElementById("files_image" .value==0){ alert("Please enter your file from browse" ;document.getElementById("files_image" .focus();return false; } } } function checkPhoto(picField) { var picFile = picField; var imagePath = document.getElementById("files_image" .value;var pathLength = imagePath.length; var lastDot = imagePath.lastIndexOf("." ;var fileType = imagePath.substring(lastDot,pathLength); if((fileType == ".docx" || (fileType == ".rar" || (fileType ==".pdf" || (fileType == ".zip" || (fileType == ".xlsx" || (fileType== ".PNG" ){ return true; } else { if(imagePath!='') { alert("We supports .rar, .zip, .xlsx, .pdf and .docx file formats. Your file-type is " + fileType + "." ;document.getElementById("files_image" .value='';} } } function check_images(picField) { var picFile = picField; var imagePath = document.getElementById("files_thumb" .value;var pathLength = imagePath.length; var lastDot = imagePath.lastIndexOf("." ;var fileType = imagePath.substring(lastDot,pathLength); if((fileType == ".jpg" || (fileType == ".gif" || (fileType ==".bmp" || (fileType == ".png" || (fileType == ".jpeg" ){ return true; } else { if(imagePath!='') { alert("We supports .jpg, .gif, .png, .bmp and .jpeg file formats. Your file-type is " + fileType + "." ;document.getElementById("files_thumb" .value='';} } } function createObject() { var request_type; var browser=navigator.appName; if(browser=="Microsoft Internet Explorer" ![]() { request_type=new ActiveXObject("Microsoft.XMLHTTP" ;} else { request_type=new XMLHttpRequest(); } return request_type; } var http=new createObject(); function productedits(Product_id) { url='components/com_comprofiler/plugin/user/plug_cbstore/files.php?product_id='+Product_id; http.open("GET",url); http.onreadystatechange=replyedites; http.send(null); } function replyedites() { var response=http.responseText; if(http.readyState==4) { document.getElementById('lighting').style.display='block'; document.getElementById('fading').style.display='block'; document.getElementById("Update_Product" .innerHTML=response;} } function functionpaypal() { document.getElementById('displayoption').style.display='block'; document.getElementById('hide_paypal').style.display='none'; } function paypalcancel() { document.getElementById('displayoption').style.display='none'; document.getElementById('hide_paypal').style.display='block'; } function confirmationcancel() { if(confirm("Are you sure you want to delete this product?" ){ return true; } else { return false; } } </script> <?php include("imagesize.php" ;global $mosConfig_live_site,$_CB_database; $my =& JFactory::getUser(); $pathforproduct="components/com_filestore/images/"; $Thumbnail="components/com_filestore/images/thumbnail/"; if($_REQUEST['action']=='paypal') { $paypal="insert #__file_paypal set userid=".$my->id.",product_id=".$_REQUEST['product_id'].",dateadded='".date("Y:m:d" ."'";$_CB_database->setQuery($paypal); $_CB_database->query(); header("location:index.php?option=com_comprofiler&task=userProfile&user=".$_REQUEST['user']); } if(isset($_REQUEST['Submit'])) { global $_CB_database; $my =& JFactory::getUser(); if($_FILES['files_image']['name']!='') { $files1=str_replace($_FILES['files_image']['name'],$my->id.date("Ymds" ."_".$_FILES['files_image']['name'],$_FILES['files_image']['name']);move_uploaded_file($_FILES['files_image']['tmp_name'], $pathforproduct.str_replace(" ","_",$files1)); } if($_FILES['files_thumb']['name']!='') { $files2=str_replace($_FILES['files_thumb']['name'],$my->id.date("Ymds" ."_".$_FILES['files_thumb']['name'],$_FILES['files_thumb']['name']);move_uploaded_file($_FILES['files_thumb']['tmp_name'], $Thumbnail.str_replace(" ","_",$files2)); $img = new Simples_Image(); $img->load($Thumbnail.str_replace(" ","_",$files2)); $img->resize(100,100); $img->save($Thumbnail.str_replace(" ","_",$files2)); } $insert="insert #__file_product set file_title='".$_REQUEST['file_title']."',file_description='".$_REQUEST['file_description']."',files_image='".str_replace(" ","_",$files1)."',files_thumb='".str_replace(" ","_",$files2)."',file_price=".$_REQUEST['file_price'].",userid=".$my->id.""; $_CB_database->setQuery($insert); $_CB_database->query(); header("location:index.php?option=com_comprofiler&task=userProfile&user=".$my->id); } if(isset($_REQUEST['Update']) && $_REQUEST['FileID']) { global $_CB_database; $SQL="select * from #__file_product where product_id=".$_REQUEST['FileID']; $_CB_database->setQuery($SQL); $rsImages=$_CB_database->loadObjectList(); if($_FILES['files_image']['name']!='') { if(file_exists($pathforproduct.$rsImages[0]->files_image)) { unlink($pathforproduct.$rsImages[0]->files_image); } $files1=str_replace($_FILES['files_image']['name'],$my->id.date("Ymds" ."_".$_FILES['files_image']['name'],$_FILES['files_image']['name']);move_uploaded_file($_FILES['files_image']['tmp_name'], $pathforproduct.str_replace(" ","_",$files1)); $image_update=",files_image='".str_replace(" ","_",$files1)."'"; } if($_FILES['files_thumb']['name']!='') { if(file_exists($Thumbnail.$rsImages[0]->files_thumb)) { unlink($Thumbnail.$rsImages[0]->files_thumb); } $files2=str_replace($_FILES['files_thumb']['name'],$my->id.date("Ymds" ."_".$_FILES['files_thumb']['name'],$_FILES['files_thumb']['name']);move_uploaded_file($_FILES['files_thumb']['tmp_name'], $Thumbnail.str_replace(" ","_",$files2)); $img = new Simples_Image(); $img->load($Thumbnail.str_replace(" ","_",$files2)); $img->resize(100,100); $img->save($Thumbnail.str_replace(" ","_",$files2)); $product_thumbs=",files_thumb='".str_replace(" ","_",$files2)."'"; } $update="update #__file_product set file_title='".$_REQUEST['file_title']."',file_description='".$_REQUEST['file_description']."',file_price=".$_REQUEST['file_price']." ".$image_update." ".$product_thumbs." where product_id=".$_REQUEST['FileID']; $_CB_database->setQuery($update); $_CB_database->query(); header("location:index.php?option=com_comprofiler&task=userProfile&user=".$my->id); } if($_REQUEST['action']=='delete') { $select="select * from #__file_product where product_id=".$_REQUEST['product_id']; $_CB_database->setQuery($select); $rsDelete=$_CB_database->loadObjectList(); if(file_exists($Thumbnail.$rsDelete[0]->files_thumb)) { unlink($Thumbnail.$rsDelete[0]->files_thumb); } if(file_exists($pathforproduct.$rsDelete[0]->files_image)) { unlink($pathforproduct.$rsDelete[0]->files_image); } $delete="delete from #__file_product where product_id=".$_REQUEST['product_id']; $_CB_database->setQuery($delete); $_CB_database->query(); header("location:index.php?option=com_comprofiler&task=userProfile&user=".$my->id); } if(isset($_REQUEST['paypal_submit'])) { global $_CB_database; $update="update #__comprofiler set paypal_email='".$_REQUEST['paypal_email']."' where id=".$my->id; $_CB_database->setQuery($update); $_CB_database->query(); } ?> <style> .blackverlay { display: none; position: absolute; top: 0%; left: 0%; width: 100% ; height: 100% ; z-index:1001; -moz-opacity: 0.8; opacity:.80; filter: alpha(opacity=80); } .content_whites { display: none; position: fixed; top: 10% ; left: 10% ; width: 700px !important; *width: 100%; height: 390px !important; *height: 100%; padding: 16px; border: 30px solid #CCCCCC; background-color: white; z-index:1002; overflow: auto; } </style> <div id="lighting" class="content_whites"> <form name="paypalForms" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" id="paypal_business" value="kaushi_1220438306_biz@raincreatives.com"> <input type="hidden" name="item_name" id="FilesName_title" value="Image"> <input type="hidden" name="amount" id="amount" value=""> <input type="hidden" name="return" id="returnvar" value="<?php echo $mosConfig_live_site;?>/index.php?option=com_comprofiler&user=<?php echo $my->id;?>"> <input type="hidden" name="notify_url" value="http://www.mybusiness.com/ipn.cgi"> </form> <form action="" method="post" enctype="multipart/form-data"> <div id="Update_Product" > <table width="100%" border="0"> <tr> <td colspan="2" align="center" style="font-family:Arial;font-size:25px;color:#000000;font-weight:bold;" height="40" id="Title_for_file">Add File</td> </tr> <tr> <td height="35" width="270" valign="top"><b>File Name :</b></td> <td><input name="file_title" id="file_title" type="text" size="40" /></td> </tr> <tr> <td><b>File Price :</b></td> <td><input type="text" value="" name="file_price" id="file_price" size="40" /></td> </tr> <tr> <td height="35" valign="top"><b>File description :</b></td> <td><textarea name="file_description" id="file_description" cols="50" rows="7"> </textarea></td> </tr> <tr> <td height="35" valign="top"><b>Thumbnail :</b></td> <td><input name="files_thumb" id="files_thumb" onblur="return check_images(this.name);" type="file" size="30" /></td> </tr> <tr> <td height="35" valign="top"><b>File :</b></td> <td><input name="files_image" id="files_image" onBlur="return checkPhoto(this.name);" type="file" size="30" /></td> </tr> <tr> <td colspan="2" height="35" align="center"><input type="submit" onblur="" id="sub_value" onclick="return filecheckerrors();" name="Submit" value="Submit" /></td> </tr> </table> <input type="hidden" name="FileID" id="updatefileid" value="0"> </div> </form> <span style="padding-left:230px;"> <a href = "javascript:void(0)" onclick = "document.getElementById('lighting').style.display='none';document.getElementById('fading').style.display='none'">Close</a></span></div> <div id="fading" class="blackverlay"></div> <script language="javascript"> function paypalgotothe(price,product_id,status,file_title) { if(document.getElementById("PaypalUser" .value=='users') { new_paypal_users=document.getElementById("EmailPaypal" .value;} else if(document.getElementById("PaypalUser" .value=='admin'){ new_paypal_users=document.getElementById("EmailPaypal" .value;} else if(document.getElementById("PaypalUser" .value=='none'){ if(status==1) { new_paypal_users=document.getElementById("EmailPaypal" .value;} else { new_paypal_users=document.getElementById("PaypalAdmin" .value;} } document.getElementById("FilesName_title" .value=file_title;document.getElementById("paypal_business" .value=new_paypal_users;document.getElementById("amount" .value=price;document.getElementById("returnvar" .value="<?php echo$mosConfig_live_site;?>/index.php?option=com_comprofiler&user=<?php echo $_REQUEST['user'];?>&action=paypal&product_id="+product_id; document.paypalForms.submit(); } function isfilesopened() { document.getElementById('lighting').style.display='block'; document.getElementById('fading').style.display='block'; document.getElementById("file_title" .value='';document.getElementById("file_price" .value='';document.getElementById("file_description" .value='';document.getElementById("sub_value" .value='Submit';document.getElementById("sub_value" .name='Submit';document.getElementById("Title_for_file" .innerHTML='Add File';} function onpaypalsubmit() { if(document.getElementById("PaypalID" .value==0){ alert("Please enter the value of paypal id" ;document.getElementById("PaypalID" .focus();return false; } if(!isValidEmail(document.getElementById("PaypalID" .value)){ alert("Please enter the proper value of paypal id" ;document.getElementById("PaypalID" .focus();return false; } } function isValidEmail(str) { return (str.indexOf("." > 2) && (str.indexOf("@" > 0);} </script><?php /** * Joomla Community Builder User Plugin: plug_cbhelloworld * @version $Id$ * @package plug_helloworld * @subpackage helloworld.php * @author Nant, JoomlaJoe and Beat * @copyright (C) Nant, JoomlaJoe and Beat, www.joomlapolis.com * @license Limited http://www.gnu.org/copyleft/gpl.html GNU/GPL * @final 1.0 */ /** ensure this file is being included by a parent file */ defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );/** * Basic tab extender. Any plugin that needs to display a tab in the user profile * needs to have such a class. Also, currently, even plugins that do not display tabs (e.g., auto-welcome plugin) * need to have such a class if they are to access plugin parameters (see $this->params statement). */ class getstoreTab extends cbTabHandler { /** * Construnctor */ function getstoreTab() { $this->cbTabHandler(); } /** * Generates the HTML to display the user profile tab * @param object tab reflecting the tab database entry * @param object mosUser reflecting the user being displayed * @param int 1 for front-end, 2 for back-end * @returns mixed : either string HTML for tab content, or false if ErrorMSG generated */ function getDisplayTab($tab,$user,$ui) { global $_CB_database; $my =& JFactory::getUser(); $select="select paypal_email from #__comprofiler"; $_CB_database->setQuery($select); $totCount=$_CB_database->loadObjectList(); if(count($totCount)==0) { $ifexists=" ALTER TABLE `jos_comprofiler` ADD `paypal_email` VARCHAR( 300 ) NULL AFTER `acceptedterms`"; $_CB_database->setQuery($ifexists); $_CB_database->query(); } $pathforproduct="components/com_filestore/icons/"; $return .= "<div>"; $SQL="select * from #__file_product where userid=".$user->id; $_CB_database->setQuery($SQL); $rsProduct=$_CB_database->loadObjectList(); $paypal="select * from #__file_paypal_config where status=1"; $_CB_database->setQuery($paypal); $rsPaypal=$_CB_database->loadObjectList(); $admin="select C.paypal_email from #__users AS U JOIN #__comprofiler as C On C.id=U.id where U.usertype='Super Administrator'"; $_CB_database->setQuery($admin); $rsAdmin=$_CB_database->loadObjectList(); $return.="<table width='100%' align='center'>"; if($user->id==$my->id) { $return.="<tr><td colspan='3'></td><td><a href='javascript:void(0)' onclick='return isfilesopened();' ><b>Add</b></a></td></tr>"; } if($user->id==$my->id) { $return.='<tr><td colspan="3"></td><td><span style="cursor:pointer;" onclick="return functionpaypal();" id="hide_paypal">Paypal Id</span></td></tr>'; } $return.='<tr><td colspan="4"><form action="" method="post"><table id="displayoption" style="display:none;" width="100%" align="center">'; $return.='<tr><td><h3>Enter Paypal Id</h3></td></tr>'; $return.='<tr><td><input type="text" class="inputbox" id="PaypalID" name="paypal_email" size="40" value="'.$user->paypal_email.'"></td></tr>'; $return.='<tr><td><input type="submit" onclick="return onpaypalsubmit();" name="paypal_submit" class="button" value="Submit"> <input type="button" value="Cancel" onclick="return paypalcancel();" class="button"></td></tr>'; $return.='</table></form>'; if($rsPaypal[0]->username=='admin') { $return.='<input type="hidden" value="'.$rsAdmin[0]->paypal_email.'" id="EmailPaypal">'; //$return.='<input type="hidden" value="'.$rsAdmin[0]->paypal_email.'" id="AdminPaypal">'; } else if($rsPaypal[0]->username=='users') { $return.='<input type="hidden" value="'.$user->paypal_email.'" id="EmailPaypal">'; // $return.='<input type="hidden" value="'.$rsAdmin[0]->paypal_email.'" id="AdminPaypal">'; } else { $return.='<input type="hidden" value="'.$rsAdmin[0]->paypal_email.'" id="PaypalAdmin">'; $return.='<input type="hidden" value="'.$user->paypal_email.'" id="EmailPaypal">'; } $return.='<input type="hidden" id="PaypalUser" value="'.$rsPaypal[0]->username.'" >'; $Thumbnail="components/com_filestore/images/thumbnail/"; for($i=0;$i<count($rsProduct);$i+=4) { $return.="<tr><td>"; if($rsProduct[$i]->file_title!='') { $first_image= explode(".",$rsProduct[$i]->files_image); $return.="<img title='".$rsProduct[$i]->file_description."' src='".$Thumbnail.$rsProduct[$i]->files_thumb."' class='thumbnail'><br><b>".$rsProduct[$i]->file_title."</b><br><b>Price :</b>".$rsProduct[$i]->file_price."$<br>"; if( $my->id==$user->id) { $return.="<a href='javascript:void(0)' onclick='return productedits(".$rsProduct[$i]->product_id." ;'>Edit</a> || <aonclick='return confirmationcancel();' href='index.php?option=com_comprofiler&user=".$user->id."&product_id=".$rsProduct[$i]->product_id."&action=delete'>Delete</a><br>"; } $image_download="select * from #__file_paypal where userid=".$my->id." and product_id=".$rsProduct[$i]->product_id; $_CB_database->setQuery($image_download); $rsDownload1=$_CB_database->loadObjectList(); if(count($rsDownload1)!=0 || $my->id==$user->id) { $return.="<a href='components/com_comprofiler/plugin/user/plug_cbstore/download.php?filename=".$rsProduct[$i]->files_image."' target='_blank'>Download</a><br>"; } if( $my->id!=$user->id) { $return.='<input type="button" value="Buy Now" class="button" onclick="return paypalgotothe(\''.$rsProduct[$i]->file_price.'\',\''.$rsProduct[$i]->product_id.'\',\''.$rsProduct[$i]->status.'\',\''.$rsProduct[$i]->file_title.'\')">'; // $return.='<input type="button" value="'.$rsProduct[$i]->file_price.'" class="button" onclick="alert(\''.$rsProduct[$i]->file_price.'\') "> '; } } $return.="</td>"; $return.="<td>"; if($rsProduct[$i+1]->file_title!='') { $second_image= explode(".",$rsProduct[$i+1]->files_image); $return.="<img title='".$rsProduct[$i+1]->file_description."' src='".$Thumbnail.$rsProduct[$i+1]->files_thumb."' class='thumbnail'><br><b>".$rsProduct[$i+1]->file_title."</a></b><br><b>Price :</b>".$rsProduct[$i+1]->file_price."$<br>"; if( $my->id==$user->id) { $return.="<a href='javascript:void(0)' onclick='return productedits(".$rsProduct[$i+1]->product_id." ;'>Edit</a> || <aonclick='return confirmationcancel();' href='index.php?option=com_comprofiler&user=".$user->id."&product_id=".$rsProduct[$i+1]->product_id."&action=delete'>Delete</a><br>"; } $image_download1="select * from #__file_paypal where userid=".$my->id." and product_id=".$rsProduct[$i+1]->product_id; $_CB_database->setQuery($image_download1); $rsDownload1=$_CB_database->loadObjectList(); if(count($rsDownload1)!=0 || $my->id==$user->id) { $return.="<a href='components/com_comprofiler/plugin/user/plug_cbstore/download.php?filename=".$rsProduct[$i+1]->files_image."' target='_blank'>Download</a><br>"; } if( $my->id!=$user->id) { //$return.="<input type='button' onclick='return paypalgotothe(".$rsProduct[$i+1]->file_price.",".$rsProduct[$i+1]->product_id.",".$rsProduct[$i+1]->status." 'value='Buy Now' class='button'>"; $return.='<input type="button" value="Buy Now" class="button" onclick="return paypalgotothe(\''.$rsProduct[$i+1]->file_price.'\',\''.$rsProduct[$i+1]->product_id.'\',\''.$rsProduct[$i+1]->status.'\',\''.$rsProduct[$i+1]->file_title.'\')">'; } } $return.="</td>"; $return.="<td>"; if($rsProduct[$i+2]->file_title!='') { $third_image= explode(".",$rsProduct[$i+2]->files_image); $return.="<img title='".$rsProduct[$i+2]->file_description."' src='".$Thumbnail.$rsProduct[$i+2]->files_thumb."' class='thumbnail'><br><b>".$rsProduct[$i+2]->file_title."</b><br><b>Price :</b>".$rsProduct[$i+2]->file_price."$<br>"; if( $my->id==$user->id) { $return.="<a href='javascript:void(0)' onclick='return productedits(".$rsProduct[$i+2]->product_id." ;'>Edit</a> || <aonclick='return confirmationcancel();' href='index.php?option=com_comprofiler&user=".$user->id."&product_id=".$rsProduct[$i+2]->product_id."&action=delete'>Delete</a><br>"; } $image_download2="select * from #__file_paypal where userid=".$my->id." and product_id=".$rsProduct[$i+2]->product_id; $_CB_database->setQuery($image_download2); $rsDownload2=$_CB_database->loadObjectList(); if(count($rsDownload2)!=0 || $my->id==$user->id) { $return.="<a href='components/com_comprofiler/plugin/user/plug_cbstore/download.php?filename=".$rsProduct[$i+2]->files_image."' target='_blank'>Download</a><br>"; } if( $my->id!=$user->id) { $return.='<input type="button" value="Buy Now" class="button" onclick="return paypalgotothe(\''.$rsProduct[$i+2]->file_price.'\',\''.$rsProduct[$i+2]->product_id.'\',\''.$rsProduct[$i+2]->status.'\',\''.$rsProduct[$i+2]->file_title.'\')">'; //$return.="<input type='button' value='Buy Now' onclick='return paypalgotothe(".$rsProduct[$i+2]->file_price.",".$rsProduct[$i+2]->product_id.",".$rsProduct[$i+2]->status." 'class='button'>"; } } $return.="</td>"; $return.="<td>"; if($rsProduct[$i+3]->file_title!='') { $fourth_image= explode(".",$rsProduct[$i+3]->files_image); $return.="<img title='".$rsProduct[$i+3]->file_description."' src='".$Thumbnail.$rsProduct[$i+3]->files_thumb."' class='thumbnail'><br><b>".$rsProduct[$i+3]->file_title."</b><br><b>Price :</b>".$rsProduct[$i+3]->file_price."$<br>"; if( $my->id==$user->id) { $return.="<a href='javascript:void(0)' onclick='return productedits(".$rsProduct[$i+3]->product_id." ;'>Edit</a> || <aonclick='return confirmationcancel();' href='index.php?option=com_comprofiler&user=".$user->id."&product_id=".$rsProduct[$i+3]->product_id."&action=delete'>Delete</a><br>"; } $image_download3="select * from #__file_paypal where userid=".$my->id." and product_id=".$rsProduct[$i+3]->product_id; $_CB_database->setQuery($image_download3); $rsDownload3=$_CB_database->loadObjectList(); if(count($rsDownload3)!=0 || $my->id==$user->id) { $return.="<a href='components/com_comprofiler/plugin/user/plug_cbstore/download.php?filename=".$rsProduct[$i+3]->files_image."' target='_blank'>Download</a><br>"; } if( $my->id!=$user->id) { $return.='<input type="button" value="Buy Now" class="button" onclick="return paypalgotothe(\''.$rsProduct[$i+3]->file_price.'\',\''.$rsProduct[$i+3]->product_id.'\',\''.$rsProduct[$i+3]->status.'\',\''.$rsProduct[$i+3]->file_title.'\')">'; //$return.="<input type='button' value='Buy Now' onclick='return paypalgotothe(".$rsProduct[$i+3]->file_price.",".$rsProduct[$i+3]->product_id.",".$rsProduct[$i+3]->status." 'class='button'>"; } } $return.="</td></tr>"; } $return.="</table>"; // $return.='<a href="javascript:void(0)" onclick="return isproduct();" >Add</a><br>'; $return .= "</div>"; return $return; } // end or getDisplayTab function } // end of gethelloworldTab class ?> |
Its a java script. |
Hello Brothers, I am working on a site with joomla, i have this script that allows my users to upload and send pictures but i want to edit it so it would upload mp3s instead of pictures. I will appreciate any good info. Thanks! |
1 2 (of 2 pages)
.value==0)