Jump to content

NaniG

Members
  • Posts

    59
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

NaniG's Achievements

Member

Member (2/5)

0

Reputation

  1. NaniG

    css nth-child

    Hi to all, As per my client suggested, i need to change the info box background color for every info box (circular way). So i used the CSS3 pseudo nth-child algoritham to assign each info box background color with different background colors. Here is my html code <div class="row flexslider carousel" id="appList"> <ul class="slides"> <li> <div class="col-lg-3 col-md-6 col-sm-6"> <div class="info-box"> <img src="img/shortcuts/money.png" alt=""> <div class="count">1</div> <div class="title">New users</div> <div class="desc">Purchase</div> <div class="desc f-bold">Test</div> </div> </div> </li> <li> <div class="col-lg-3 col-md-6 col-sm-6"> <div class="info-box"> <img src="img/shortcuts/money.png" alt=""> <div class="count">2</div> <div class="title">New users</div> <div class="desc">Purchase</div> <div class="desc f-bold">Test</div> </div> </div> </li> <li> <div class="col-lg-3 col-md-6 col-sm-6"> <div class="info-box"> <img src="img/shortcuts/money.png" alt=""> <div class="count">3</div> <div class="title">New users</div> <div class="desc">Purchase</div> <div class="desc f-bold">Test</div> </div> </div> </li> <li> <div class="col-lg-3 col-md-6 col-sm-6"> <div class="info-box"> <img src="img/shortcuts/money.png" alt=""> <div class="count">4</div> <div class="title">New users</div> <div class="desc">Purchase</div> <div class="desc f-bold">Test</div> </div> </div> </li> <li> <div class="col-lg-3 col-md-6 col-sm-6"> <div class="info-box"> <img src="img/shortcuts/money.png" alt=""> <div class="count">5</div> <div class="title">New users</div> <div class="desc">Purchase</div> <div class="desc f-bold">Test</div> </div> </div> </li> </ul> </div> Here is CSS code .info-box { min-height: 140px; border: 1px solid black; margin-bottom: 30px; padding: 20px; color: white; -webkit-box-shadow: inset 0 0 1px 1px rgba(255, 255, 255, 0.35), 0 3px 1px -1px rgba(0, 0, 0, 0.1); -moz-box-shadow: inset 0 0 1px 1px rgba(255, 255, 255, 0.35), 0 3px 1px -1px rgba(0, 0, 0, 0.1); box-shadow: inset 0 0 1px 1px rgba(255, 255, 255, 0.35), 0 3px 1px -1px rgba(0, 0, 0, 0.1); } .info-box i { display: block; height: 100px; font-size: 60px; line-height: 100px; width: 100px; float: left; text-align: center; border-right: 2px solid rgba(255, 255, 255, 0.5); margin-right: 20px; padding-right: 20px; color: rgba(255, 255, 255, 0.75); } .info-box img { display: block; height: auto; font-size: 46px; line-height: 46px; width: auto; float: left; text-align: center; border-right: 2px solid rgba(255, 255, 255, 0.5); margin-right: 20px; padding-right: 20px; color: rgba(255, 255, 255, 0.75); } .info-box .count { margin-top: -10px; font-size: 34px; font-weight: 700; } .info-box .title { font-size: 12px; text-transform: uppercase; font-weight: 600; } .info-box .desc { margin-top: 10px; font-size: 12px; } #appList ul.slides li div div.info-box:nth-child(5n+1) { background: #fabb3d; border: 1px solid #f9aa0b; } #appList ul.slides li div div.info-box:nth-child(5n+2) { background: #ff5454; border: 1px solid #ff2121; } #appList ul.slides li div div.info-box:nth-child(5n+3) { background: #67c2ef; border: 1px solid #39afea; } #appList ul.slides li div div.info-box:nth-child(5n+4) { background: #79c447; border: 1px solid #61a434; } #appList ul.slides li div div.info-box:nth-child(5n) { background: #20a8d8; border: 1px solid #1985ac; } But when i tried with the above code, the info box only accepts (5n+1) CSS code. Can any one please suggest me the way to get the solution.
  2. Hi all, I have a query.... have to get all the attribute names as well as values of textbox in json format. Below is the sample example how can i need to get the output... <form action="" method="POST"> <input type="text" name="someName" id="someId" maxlength="12"> <input type="submit" name="submit" value="Submit"> </form> When i click the submit button, i nedd to get all input types whether it could be textbox / textarea / checkbox / radio button in json format. Example: When i click on submit button, the output will be like these..... {"type" : "text", "name" : "someName", "id" : "someId", "maxlength" : "12"} If any body knows, Please give me some suggention with examples. Thanks in advance....! :'( :'(
  3. Hi to all, I have an jquery modal popup window. So now I want to pass value of recid to modal popup window. HTML Code : <a href="#widget-config #ADD" id="<?php echo $row->recid; ?>" data-toggle="modal" class="btn btn-small add" data-rec-id="<?php echo $row->recid; ?>"><i class="icon-plus"> </i> Add</a> PHP Code : <div id="widget-config"> <div id="ADD" class="modal hide"> <div class="modal-header"> <button data-dismiss="modal" class="close" type="button">×</button> <h4>Add Record</h4> </div> <div class="modal-body"> <p>Are you sure you want to Add Mr.ABCD as Student</p> <p><input type="submit" value="Add" class="btn btn-small" name="AddStudent" /> <input type="reset" name="no" class="btn btn-small" value="No"data-dismiss="modal" /></p> </div> </div> I tried like below. But am not able to get the recid which is from MySQL table. <div id="widget-config"> <div id="ADD" class="modal hide"> <form name="formAddStudent" id="formAddStudent" method="post" action="AddStudent.php"> <script language="javascript"> $("a.add).click(function(e){ var _id; e.preventDefault(); var _id = $(this).attr('id'); }); </script> <div class="modal-header"> <button data-dismiss="modal" class="close" type="button">×</button> <h4>Add Record</h4> </div> <div class="modal-body"> <p>Are you sure you want to Add Mr.ABCD as Student</p> <p><input type="submit" value="Add" class="btn btn-small" name="AddStudent" /> <input type="reset" name="no" class="btn btn-small" value="No"data-dismiss="modal" /></p> </div> </form? </div> </div> Please help me out from these....! Thanks in advance.
  4. Hi to all, I have an jquery modal popup window. So now I want to pass value of recid to modal popup window. HTML Code : <a href="#widget-config #ADD" id="<?php echo $row->recid; ?>" data-toggle="modal" class="btn btn-small add" data-rec-id="<?php echo $row->recid; ?>"><i class="icon-plus"> </i> Add</a> PHP Code : <div id="widget-config"> <div id="ADD" class="modal hide"> <div class="modal-header"> <button data-dismiss="modal" class="close" type="button">×</button> <h4>Add Record</h4> </div> <div class="modal-body"> <p>Are you sure you want to Add Mr.ABCD as Student</p> <p><input type="submit" value="Add" class="btn btn-small" name="AddStudent" /> <input type="reset" name="no" class="btn btn-small" value="No"data-dismiss="modal" /></p> </div> </div> <div id="widget-config"> <div id="ADD" class="modal hide"> <form name="formAddStudent" id="formAddStudent" method="post" action="AddStudent.php"> <script language="javascript"> $("a.add).click(function(e){ var _id; e.preventDefault(); var _id = $(this).attr('id'); }); </script> <div class="modal-header"> <button data-dismiss="modal" class="close" type="button">×</button> <h4>Add Record</h4> </div> <div class="modal-body"> <p>Are you sure you want to Add Mr.ABCD as Student</p> <p><input type="submit" value="Add" class="btn btn-small" name="AddStudent" /> <input type="reset" name="no" class="btn btn-small" value="No"data-dismiss="modal" /></p> </div> </form? </div> </div> I tried like above. But am not able to get the recid which is from MySQL table. Please help me out from these....! Thanks in advance.
  5. Hi to all, Am developing a Online Test Quiz Portal. My Question is : When the user clicks on next button ( very first time ), how can i get the next question which is to be not in previous question id in the present question id. Here is the mySQL select statement... select * from questions where TESTTOPIC_ID in (1, 5) and QSTATUS = 'Enable' and QID NOT IN ('10') order by rand() limit 0,1; Here suppose TestTopic Id 1 -> PHP 5 -> CSS QID Question ID When i run above script it will shows only one record. it is fine. But how can i add the previous question id into an array (in QID) to cross check whether the question is already shown in the list. Please help me out.
  6. NaniG

    Random

    Thanks for your quick reply Barand, IT seems to be fine for all the Topic Ids. if the Topic Id 1 is realted to Topic id 3 and Topic Id 2 is also related to Topic Id 3 and there is no relationship in between 1 and 2. Then how can get the random QIDs. Let us suppose Topic Id 1 -> Java Topic Id 2 -> .Net Topic Id 3 -> Javascript There is relation inbetween 1 and 3 , 2 and 3 but not with 1 and 2. So my question is how can i get the Questions of 1 and 3 or 2 and 3 Topic IDs which is random and each topic must contain atleast 2 Questions (for example). Hope i am clear.
  7. NaniG

    Random

    Hi to All, I have a table with fields TOPIC_ID and QID, multiple QID's for TOPIC_ID Table A : TOPIC_ID QID 1 1 1 2 1 3 2 4 2 5 2 6 3 7 3 8 3 9 Now my question is : how can i get the random QIDs of each TOPIC_ID and QID LIMIT should be 2 for each TOPIC_ID. My Query is "select * from questions where TOPIC_ID in (1,2,3) order by rand() limit 0,6"; When i tried with above mentioned query, am getting the randomly generated QIDs. i am getting the correct output. But my intension is to get only 2 QIDs from each TOPIC_ID and it should be randomly generated QID. How can i. Please help me out.
  8. Thanks for reply Jugesh. Yes, the include path is different in PHP.ini file and it is include_path:.;C:\xampp\php\PEAR. I uploaded PHP5.ini file due to my site was hosted in goDaddy Shared hosting. i changed the include path in php.ini file as "home\content\a\i\o\test\html", but getting the same error. Is the include path is right syntax, or shall i changed to other way. More ever i included the path on top of the page (config.php of KCFinder) with ini_set('include_path', 'home\content\a\i\o\test\html'); Please let me know the correct one. Thanks in advance.
  9. Hi to all, Am tryed to install / configure the KCFinder with CKEditor into my admin side. Am successfully configured and it is working fine in localhost (local machine) as well as in Remote Server Desktop (Test machine). But when i uploaded into production server, am getting the following type of error. Warning: require(core/browser.php) [function.require]: failed to open stream: No such file or directory in /home/content/a/i/o/test/html/admin/ckeditor/kcfinder/core/autoload.php on line 30 Fatal error: require() [function.require]: Failed opening required 'core/browser.php' (include_path='.;C:\xampp\php\PEAR') in /home/content/a/i/o/test/html/admin/ckeditor/kcfinder/core/autoload.php on line 30 Am developing the site in Smarty (PHP) as well as MySQL as backend and my site is hosted in goDaddy shared hosting. Please help me out form these issue
  10. Yes, am using Dynamic Code which is drag and drop sortable JQuery with PHP and MySQL.
  11. Hi to all, How can i refresh a particular div section after mouse release. I tried with all possible mouse events but am unluck. Can any one please help me out from these issue.
  12. Thanks Mahngiel and Kira ... Every thing is fine done according your suugestions. But in the State Dropdown of Contact Information section, that particular state value is not populated. var stateIndex = document.getElementById('cmpystate').selectedIndex; var stateText = document.getElementById('cmpystate').options; alert("Index: " + stateText[stateIndex].index + " is " + stateText[stateIndex].text); var StateValue = document.getElementById('contact_state').options[document.getElementById(cmpystate').selectedIndex].text; alert(StateValue); Its showing nothing. as am using the javascript to get the Countrues and State from http://bdhacker.sourceforge.net/javascript/countries/ Can you people please suggested me.
  13. Hi to all, In my registration page, i have a headers like Company Information, Contact Information and etc. Fields in company information : Company Name, Address1, Address2, City, Country, State, ZipCode Fields in Contact Information : First Name, Middle Name, Last Name, Email Address, Phone, Address1, Address2, City, Country, State, ZipCode. Country and State are two dropdowns and depending upon the selected country name the states will be appear. Am fetching the values from javascript instead of mysql database. (http://bdhacker.sour...ript/countries/) I have a checkboxes Whether the Contact address is as same as the company address with "Yes" or "No". When User cheks the "Yes" checkbox, then the Company Address text Filed values will be papulated in the respective Contact Information textbox fileds. If he cheks "No" checkbox, the Contact information fields will be validated. Please suggest me how can i solve my problem.
  14. Hi to all, In my registration page, i have a headers like Company Information, Contact Information and etc. Fields in company information : Company Name, Address1, Address2, City, Country, State, ZipCode Fields in Contact Information : First Name, Middle Name, Last Name, Email Address, Phone, Address1, Address2, City, Country, State, ZipCode. Country and State are two dropdowns and depending upon the selected country name the states will be appear. Am fetching the values from javascript instead of mysql database. (http://bdhacker.sourceforge.net/javascript/countries/) I have a checkboxes Whether the Contact address is as same as the company address with "Yes" or "No". When User cheks the "Yes" checkbox, then the Company Address text Filed values will be papulated in the respective Contact Information textbox fileds. If he cheks "No" checkbox, the Contact information fields will be validated. Please suggest me how can i solve my problem.
  15. Thanks Gizmola, My problem has been solved.... Many more thanks....
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.