Jump to content
php.lv forumi

hokss

Reģistrētie lietotāji
  • Posts

    17
  • Joined

  • Last visited

hokss's Achievements

Newbie

Newbie (1/14)

  1. hokss

    content-type

    ok tā arī darīšu.
  2. hokss

    content-type

    UTF-8 vai iso-8859-13 vai windows-1257. kuru labāk izvēlēties priekš meta taga?
  3. vai ir kāds iso fails vai kas tamlidzīgs ar ko var aizstāt šo tabulu priekš latviešu valodas? <table border="0" align="center" cellpadding="0" cellspacing="3"> <caption> <b>Latvian HTML Entity Codes </b> </caption> <tr> <td valign="top"> <table border="0" align="center" cellpadding="3" cellspacing="0" class="chart"> <tr> <td class="colspan2" width="25"> </td> <td class="colspan2"> <b>Latvian Vowels </b> </td> <p></p> </tr> <tr> <th class="seriflarge" scope="row">Ā</th> <td><b>Ā</b> capital A macron </td> </tr> <tr> <th class="seriflarge" scope="row">ā</th> <td><b>ā</b> lower A macron </td> </tr> <tr> <th class="seriflarge" scope="row">Ē</th> <td><b>Ē</b> capital E macron</td> </tr> <tr> <th class="seriflarge" scope="row">ē</th> <td><b>ē</b> lower E macron</td> </tr> <tr> <th class="seriflarge" scope="row">Ī</th> <td><b>Ī</b> capital I macron</td> </tr> <tr> <th class="seriflarge" scope="row">ī </th> <td><b>ī</b> lower I macron</td> </tr> <tr> <th scope="row" class="seriflarge">Ū</th> <td><b>Ū</b> capital U macron</td> </tr> <tr> <th scope="row" class="seriflarge">ū</th> <td><b>ū</b> lower U macron </td> </tr> </table>
  4. tatad manaa gadijuma SMTP = mail1.eircom.net smtp_port = 110 jebkurā gadījumā nesanāca nosūtīt, bet par cik es tikai teisteju pagaidām kāda ir varbūtība ka skripts nestrādās pēc piblicēšanas??? (runa iet par publicēšanu uz hostinga ar normālu domēnu.
  5. samierinaties. lielākajā daļā uzņēmumu IT nodaļa ir pārāk slinka, lai ļautu instelēt citas pārlukprogrammas :D
  6. johaidii beidzot pieleca kaa visu pareizi uzstaadiit. tagad jautaajums mana epasta forma nesuta epastu uz web mail no lokalhost - vai tas ir norm?? vai jameklē cita? <?php /* This first bit sets the email address that you want the form to be submitted to. You will need to change this value to a valid email address that you can access. */ $webmaster_email = "[email protected]"; /* This bit sets the URLs of the supporting pages. If you change the names of any of the pages, you will need to change the values here. */ $feedback_page = "Rakstimums.html"; $error_page = "kluda.html"; $thankyou_page = "Paldies.html"; /* This next bit loads the form field data into variables. If you add a form field, you will need to add it here. */ $email_address = $_REQUEST['email_address'] ; $comments = $_REQUEST['comments'] ; /* The following function checks for email injection. Specifically, it checks for carriage returns - typically used by spammers to inject a CC list. */ function isInjected($str) { $injections = array('(\n+)', '(\r+)', '(\t+)', '(%0A+)', '(%0D+)', '(%08+)', '(%09+)' ); $inject = join('|', $injections); $inject = "/$inject/i"; if(preg_match($inject,$str)) { return true; } else { return false; } } // If the user tries to access this script directly, redirect them to the feedback form, if (!isset($_REQUEST['email_address'])) { header( "Location: $feedback_page" ); } // If the form fields are empty, redirect to the error page. elseif (empty($email_address) || empty($comments)) { header( "Location: $error_page" ); } // If email injection is detected, redirect to the error page. elseif ( isInjected($email_address) ) { header( "Location: $error_page" ); } // If we passed all previous tests, send the email then redirect to the thank you page. else { mail( "$webmaster_email", "Feedback Form Results", $comments, "From: $email_address" ); header( "Location: $thankyou_page" ); } ?> biju nomainijis uz savu epasta adresi.
  7. tieshi ta. PHP skriptus pats neakstu bet salasu internetā. līdz ar to pirms ielādēt mājaslapu uz hostu gribētos pārbaudīt vai viss strādā takā tam vajadzētu. nekas jau tur nopietns nav. pāris hit counter un reitingi plus epasta formas, bet tomēr gribētos redzēt kā un kas strādā pirms publicēju. tātad ir kādi ieteikumi?
  8. Gribēju patestēt dažus no saviem php skriptiem uz datora pirms publicēt. Vai kāds nezin programmu ar kuras palīdzību to varētu izdarīt uz datora nevis online? Pamēģināju XAMPP, bet tā īsti neizdevās panākt rezultātus. P.S. man ir vista home premium.
  9. hokss

    tabulas

    Tā vietai lai spiestu uz pirmās kolonnas (name) gribetos spiest uz pogas (button) lai teksts kas ir salikts tabulā sakārtotos pēc alfabēta.
  10. hokss

    tabulas

    Laikam neizteicos precizi. man ir skripts kas straadaa un straadaa ljoti labi, probleema ir tajaa ka nesaprotu kaa sakaartot nevis pec tabulas virsraksta bet ar pogu ... JS - var TINY={}; function T$(i){return document.getElementById(i)} function T$$(e,p){return p.getElementsByTagName(e)} TINY.table=function(){ function sorter(n){this.n=n; this.pagesize=20; this.paginate=0} sorter.prototype.init=function(e,f){ var t=ge(e), i=0; this.e=e; this.l=t.r.length; t.a=[]; t.h=T$$('thead',T$(e))[0].rows[0]; t.w=t.h.cells.length; for(i;i<t.w;i++){ var c=t.h.cells; if(c.className!='nosort'){ c.className=this.head; c.onclick=new Function(this.n+'.wk(this.cellIndex)') } } for(i=0;i<this.l;i++){t.a={}} if(f!=null){var a=new Function(this.n+'.wk('+f+')'); a()} if(this.paginate){this.g=1; this.pages()} }; sorter.prototype.wk=function(y){ var t=ge(this.e), x=t.h.cells[y], i=0; for(i;i<this.l;i++){ t.a.o=i; var v=t.r.cells[y]; t.r.style.display=''; while(v.hasChildNodes()){v=v.firstChild} t.a.v=v.nodeValue?v.nodeValue:'' } for(i=0;i<t.w;i++){var c=t.h.cells; if(c.className!='nosort'){c.className=this.head}} if(t.p==y){t.a.reverse(); x.className=t.d?this.asc:this.desc; t.d=t.d?0:1} else{t.p=y; t.a.sort(cp); t.d=0; x.className=this.asc} var n=document.createElement('tbody'); for(i=0;i<this.l;i++){ var r=t.r[t.a.o].cloneNode(true); n.appendChild®; r.className=i%2==0?this.even:this.odd; var cells=T$$('td',r); for(var z=0;z<t.w;z++){cells[z].className=y==z?i%2==0?this.evensel:this.oddsel:''} } t.replaceChild(n,t.b); if(this.paginate){this.size(this.pagesize)} }; sorter.prototype.page=function(s){ var t=ge(this.e), i=0, l=s+parseInt(this.pagesize); if(this.currentid&&this.limitid){T$(this.currentid).innerHTML=this.g} for(i;i<this.l;i++){t.r.style.display=i>=s&&i<l?'':'none'} }; sorter.prototype.move=function(d,m){ var s=d==1?(m?this.d:this.g+1):(m?1:this.g-1); if(s<=this.d&&s>0){this.g=s; this.page((s-1)*this.pagesize)} }; sorter.prototype.size=function(s){ this.pagesize=s; this.g=1; this.pages(); this.page(0); if(this.currentid&&this.limitid){T$(this.limitid).innerHTML=this.d} }; sorter.prototype.pages=function(){this.d=Math.ceil(this.l/this.pagesize)}; function ge(e){var t=T$(e); t.b=T$$('tbody',t)[0]; t.r=t.b.rows; return t}; function cp(f,c){ var g,h; f=g=f.v.toLowerCase(), c=h=c.v.toLowerCase(); var i=parseFloat(f.replace(/(\$|\,)/g,'')), n=parseFloat(c.replace(/(\$|\,)/g,'')); if(!isNaN(i)&&!isNaN(n)){g=i,h=n} i=Date.parse(f); n=Date.parse©; if(!isNaN(i)&&!isNaN(n)){g=i; h=n} return g>h?1:(g<h?-1:0) }; return{sorter:sorter}
  11. hokss

    tabulas

    vai ir iespējams ar pogas palīdzību sakārtot tabulu? un ja ir kads nevarētu lūdzu pateikt priekšā? kods: <title>TinyTable</title> <link rel="stylesheet" href="style.css" /> <style type="text/css"> .style1 { text-align: center; } </style> </head> <body> <div class="style1"> <button name="Abutton1">button</button> <br /> <br /> <table cellpadding="0" cellspacing="0" border="0" id="table" class="sortable"> <thead> <tr> <th><h3 class="style1">Name</h3></th></tr> </thead> <tbody> <tr> <td>Fritz Benton</td> </tr> <tr> <td>Mannix Davidson</td> </tr> <tr> <td>Grant Lawrence</td> </tr> <tr> <td>Katell Crosby</td> </tr> <tr> <td>Eden Burks</td> </tr> </tbody> </table> <div id="controls"> <div id="perpage"> <select onchange="sorter.size(this.value)"> <option value="5">5</option> <option value="10" selected="selected">10</option> <option value="20">20</option> <option value="50">50</option> <option value="100">100</option> </select> <span>Entries Per Page</span> </div> <div id="navigation"> <img src="images/first.gif" width="16" height="16" alt="First Page" onclick="sorter.move(-1,true)" /> <img src="images/previous.gif" width="16" height="16" alt="First Page" onclick="sorter.move(-1)" /> <img src="images/next.gif" width="16" height="16" alt="First Page" onclick="sorter.move(1)" /> <img src="images/last.gif" width="16" height="16" alt="Last Page" onclick="sorter.move(1,true)" /> </div> <div id="text">Displaying Page <span id="currentpage"></span> of <span id="pagelimit"></span></div> </div> <script type="text/javascript" src="script.js"></script> <script type="text/javascript"> var sorter = new TINY.table.sorter("sorter"); sorter.head = "head"; sorter.asc = "asc"; sorter.desc = "desc"; sorter.even = "evenrow"; sorter.odd = "oddrow"; sorter.evensel = "evenselected"; sorter.oddsel = "oddselected"; sorter.paginate = true; sorter.currentid = "currentpage"; sorter.limitid = "pagelimit"; sorter.init("table",1); </script> </div> </body> </html> cik noprotu tad vajag izmantot funkciju onclick ="????????" esmu iesācējs luudzu nenošaujiet uzreiz :D
  12. http://wordpress.org...ion-the-excerpt varbuut te?
  13. shads arii derees :D http://www.a6.lv/category/veikali tikai nekaadiigi nevaru saprast kaa to dabuut gatavu.. meegjinaaju pakopeet skriptu bet shkjiet ka vajdziigs kaut kaads javaskripts. varbuut kaads var iedot mazu paraugu straadaajoshu paraugu - taalaak vareeshu pats pashpikot.
  14. Es no savas pueredzes - saaku ar zimuli un burtniicu uziimeeju izdomaaju tad tikai saaku rakt kaa, kaut ko taadu dabuut gatavu! v ispirms ir jauztaisa kopejais izskats. http://www.w3schools.com/html/html_layout.asp :) un ad jasaprot ko kur un kaa rakstiit. bet ja esi pilniigaakais iesaaceejs iesaku saakt ar kaadu gatavu shablonu kuru vari pielabot peec savaam vajadziibaam. svariigi ir arii jau saakumaa atrast piemeerotu hostu lai zinaatu cik daudz un dazhaadus skriptus atbalstiis tavs hosts.
  15. gribu dabūt kaut ko līdzīgu šim - http://www.discoverireland.ie/CMSPages/PortalTemplate.aspx?aliaspath=%2fSearch%2fResults&catid=10108&lcid=2&countyid=21
×
×
  • Create New...