Jump to content
#StayAtHome ×

EricOnAdventure

Members
  • Content Count

    80
  • Joined

  • Last visited

Community Reputation

0 Neutral

About EricOnAdventure

  • Rank
    Regular Member

Profile Information

  • Gender
    Male
  • Location
    Asia
  • Interests
    www.yourworldyourhome.com
    www.efunstudies.com
  1. Right now my software uses a simple mailer.php to send a generated text emails to my account, and from there I can work on them. It would be easier if my software could instead input the generated information into a doc or docx file (this seems very complex) and send it to a folder in my google docs. 1.Is this possible with php? 2. Would this be way too difficult or might there be some preexisting scripts somewhere out there(haven't found any) Thanks
  2. Thanks for checking on my code awareness, but I got that part covered I know the output is coming from these because when I // the output goes away I know nothing is set because I am using foreach($_POST as $varname => $value) { print "<b>".$varname."</b> = $value <br/>"; } and these $varables are not set That is why I am stumped.
  3. Running the following code, nothing is set, but everything echos anyway if((isset($_SESSION['post']["EduMA"])) && (isset($_SESSION['post']["EduMA2"]))) { echo $EduMA2; } if (isset($_SESSION['post']["EduPhD"])) { echo $EduPhD; } Thanks
  4. Ah, yes, good point and thanks. I will be working on my layout as well.
  5. I am getting an unexpected end of page error due to this line. if (isset($skippage)){header("location: page4_form.php"); $skipage is set. Any ideas? Thanks
  6. I reverted back, but still I cant get his fiddle to work, maybe some interference with a script? Zane since you have the theme could you take a quick look at it and see if you can figure out why it doesn't work? I would like it to work, but nothing I do works.
  7. Thanks Kicken, I tried that but I can't seem to get it right. Here is what the var dump gives m array(10) { ["Details"]=> array(0) { } ["HasEditGrant"]=> bool(true) ["CancelUrl"]=> string(28) "unidata.php?operation=return" ["EditUrl"]=> string(32) "unidata.php?operation=edit&pk0=1" ["PrintOneRecord"]=> bool(false) ["PrintRecordLink"]=> string(36) "unidata.php?operation=printrec&pk0=1" ["ExportButtons"]=> array(0) { } ["Title"]=> string(7) "Unidata" ["PrimaryKeyMap"]=> array(1) { ["id"]=> string(1) "1" } ["Row"]=> array(79) { ["University"]=> array(3) { ["Caption"]=> string(10) "University" ["Value"]=> string(24) "Alabama A & M University" ["DisplayValue"]=> string(24) "Alabama A & M University" } ["STABBR"]=> array(3) { ["Caption"]=> string(6) "STABBR" ["Value"]=> string(2) "AL" ["DisplayValue"]=> string(2) "AL" } ["PREDDEG"]=> array(3) { ["Caption"]=> string(7) "PREDDEG" ["Value"]=> string(1) "3" ["DisplayValue"]=> string(1) "3" } ["HIGHDEG"]=> array(3) { every key combination I have tried has failed completely, any advice?
  8. Thanks Kicken, I've been trying to follow your advice but I haven't ended up anywhere better. in $Grid, the 3rd array is the University Key I tried everything I could think of to get it to work from this point, but everything failed. Any advice on which direction I should take this?
  9. Hey Kicken, your right that is generated by smarty so editing that file is rather pointless So let me display what print r gives me for $grid.row and $grid I get this Array ( [university] => Array ( [Caption] => University [Value] => Texas A & M International University [DisplayValue] => Texas A & M International University ) [sTABBR] => Array ( [Caption] => STABBR [Value] => TX [DisplayValue] => TX ) [PREDDEG] => Array ( [Caption] => PREDDEG [Value] => 3 [DisplayValue] => 3 ) [HIGHDEG] => Array ( [Caption] => HIGHDEG [Value] => 4 [DisplayValue] => 4 ) [CONTROL] => Array ( [Caption] => CONTROL [Value] => 1 [DisplayValue] => 1 )……and so on…. for $Grid I also get all of the above, except I also get a few other pieces of data such as ID and database name. The warning I am getting is: Warning: Illegal string offset 'University' in C:\xampp\htdocs\uni\templates_c\%%C6^C67^C6773CE7%%gridusa.tpl.php on line 26 Warning: Illegal string offset 'DisplayValue' in C:\xampp\htdocs\uni\templates_c\%%C6^C67^C6773CE7%%gridusa.tpl.php on line 26 u Notice the "u" on the 2nd notice. I get 8 of these warnings and 4 "u"'s Line 26 comes from the generated file, as follows <?php $_from = $this->_tpl_vars['Grid']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)): foreach ($_from as $this->_tpl_vars['row']): ?> //line 26 is the one below. <?php echo $this->_tpl_vars['row']['University']['DisplayValue']; ?> <?php endforeach; endif; unset($_from); ?> I have no idea why the U even exists, and it exists for matter what I am calling for. Any ideas?
  10. I cant seem to make lasting changes to this file, at least not now, as the program is auto-changing this file as I make changes to my templet. I disabled warnings, thinking that would fix the issue, at least for now, and it did, except that it also helped me spot a new issue. So I am not only getting the row sent back to me, but also u for example u u u U Saint Augustine College u u u U IL, u u u U 2, This is what I get from my first three trials related to : {foreach from=$Grid item=row} {$row.XXXXXX.DisplayValue} {/foreach} XXXXXbeing whatever it is I am calling.
  11. What a fun approach, anywhere here is what I get, (FYI I changed the university and therefor data row from the previous data) array(0) { } bool(true) string(28) "unidata.php?operation=return" string(34) "unidata.php?operation=edit&pk0=552" bool(false) string(38) "unidata.php?operation=printrec&pk0=552" array(0) { } string(7) "Unidata" array(1) { ["id"]=> string(3) "552" } array(79) { ["University"]=> array(3) { ["Caption"]=> string(10) "University" ["Value"]=> string(23) "Saint Augustine College" ["DisplayValue"]=> string(23) "Saint Augustine College" } ["STABBR"]=> array(3) { ["Caption"]=> string(6) "STABBR" ["Value"]=> string(2) "IL" ["DisplayValue"]=> string(2) "IL" } ["PREDDEG"]=> array(3) { ["Caption"]=> string(7) "PREDDEG" ["Value"]=> string(1) "2" ["DisplayValue"]=> string(1) "2" }
  12. Ok thanks, that works, although I get quite a few warnings all related to line 26 in an associated file <?php $_from = $this->_tpl_vars['Grid']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)): foreach ($_from as $this->_tpl_vars['row']): ?> !!!!!!line 26---> <?php echo $this->_tpl_vars['row']['University']['DisplayValue']; ?> <?php endforeach; endif; unset($_from); ?>
  13. Thanks muddy, I am sure that would work in normal conditions, unfortunately as this generator uses smarty the code runs into conflict with smarty's code... Here is how the page creates an output of every bit of info in the array. </table> <div class=""> <div class="col-lg-8"> {foreach from=$Grid.Row item=Cell} <div class="form-group"> <label class="col-sm-3 control-label"> {$Cell.Caption} </label> <div> <div class="form-control-static"> {$Cell.DisplayValue} </div> </div> </div> {/foreach} </div> </div> Might this help you beter understand how this system works? If I can just out the information associated with the university then I can figure out the rest.
  14. Hey guys I need a bit of help with associative arrays. I am using the mysql php generator to create a rather nice searchable database. The software uses smarty as to reate page templets, that may be useful for my issue. My issue is this I want to echo an aspect of an array but I can get that to happen, if I print the array I get this: Array ( [university] => Array ( [Caption] => University [Value] => Texas A & M International University [DisplayValue] => Texas A & M International University ) [sTABBR] => Array ( [Caption] => STABBR [Value] => TX [DisplayValue] => TX ) [PREDDEG] => Array ( [Caption] => PREDDEG [Value] => 3 [DisplayValue] => 3 ) [HIGHDEG] => Array ( [Caption] => HIGHDEG [Value] => 4 [DisplayValue] => 4 ) [CONTROL] => Array ( [Caption] => CONTROL [Value] => 1 [DisplayValue] => 1 )……and so on…. how would I go about echoing only the 'university'? I’ve tried a lot of combinations, but nothing seemed to work, any idea?
  15. Zane, thanks for your hack but it is still not working for me. Perhaps I did it wrong in some way? I tried many, many diffrent ways, but none works, Anyway here is the code as it is with me trying to reflect your hack as best I can... <li class="active"><a href="#tab1">Step by Step Guide</a></li> <li><a href="#tab2">Before You Apply</a></li> <li><a href="#tab3">Your Application</a></li> <li><a href="#tab4">Your Acceptance</a></li> <li><a href="#tab5">Final steps</a></li> <li><a href="#tab6">Cheap Travel Tips</a></li> </ul> <div class="col-lg-9 col-sm-9 tab-content animated-area"> <div class="row tab-pane fade in active" id="tab1"> <div class="tab-text col-lg-6 col-sm-6"> <h2>Your Step-By-Step Guide to Studying Overseas</h2> <p class="margint20"> Below is our step-by-step guide to applying to any higher education program. Pay attention to the dates and if you decided you want to work with EfunStudies we will provide you even more information and help guide you through all the steps. </p> <ul class="margint30"> <li><i class="icon-long-arrow-right"></i> <a data-target="step2" class="tab1-anchor">One year before</a></li> <li><i class="icon-long-arrow-right"></i> <a data-target="step3" class="tab1-anchor">10 months before</a></li> <li><i class="icon-long-arrow-right"></i> <a data-target="step4" class="tab1-anchor">6 months before</a></li> <li><i class="icon-long-arrow-right"></i> <a data-target="step5" class="tab1-anchor">5 months before</a></li> <li><i class="icon-long-arrow-right"></i> <a data-target="step6" class="tab1-anchor">Cheap Travel Tips!</a></li> </ul> </div> <div class="col-lg-6 col-sm-6"> <img src="temp/tab-image.png" class="img-responsive animated" data-animation="fadeInUpBig" data-animation-delay="0.3s" alt="" /> </div> </div> <div class="tab-pane fade" id="tab2"> <p class="about-title"><a href="#tab2" id="step2">Before You Apply (One year before you plan to start studying)</p></a> 1. Find out what you want to study, think deeply about where you want to be in 5 or 10 years and then find the right program of study that will help you get there. <br>2. Search for universities with good programs that match your life goal and which you can get into based on your past performance. Choose several universities that you like. <br>3. Check out the universities’ websites. Which best suits you? <br>4. Check out the universities deadlines and requirements <br>5. Make plans to do an internship or volunteer in order to increase your chances. </div> <div class="tab-pane fade" id="tab3"> <p class="about-title"><a href="#tab3" id="step3">Your Application (10 months before you plan to start studying)</p></a> 1. Prepare your Resume / CV (if needed), your Reference letters, and your Personal Statement. <br>2. Fill out your application form. <br>3. Double check all of your documents and your application. <br>4. Submit your application early, especially if there are rolling deadlines. DO NOT WAIT TILL THE LAST DAY. You should try to apply 1-2 months before the deadline or sooner. </div> <div class="tab-pane fade" id="tab4"> <p class="about-title"> <a href="#tab4" id="step4">Your Acceptance (6 months before you plan to start studying)</p></a> 1. Wait. <br>2. Receive your acceptance letter and celebrate. <br>3. Your acceptance letter may or may not mention if you have already received scholarships or assistantships. <br>4. Check for scholarships at the university that has accepted you, and in the country that you were accepted in for programs of the type you are studying. <br>5. Email your future head professor and ask for a Teaching and or Research Assistantships. <br>6. If your future head professor says no, then email other professors in your department. <br>7. Ask your head professor for any other financial aid that may be available. </div> <div class="tab-pane fade" id="tab5"> <p class="about-title"><a href="#tab5" id="step5">Final steps (5 months before you plan to start studying)</p></a> 1. Choose which university you will be studying in. <br>2. Get your transcripts from your previous schools and send them to the university you selected. <br>3. Sign up for an appointment with the embassy of the country you will be studying in. <br>4. Go to the embassy appointment, bring your acceptance letter with you. Apply for a student visa. (tip – don’t say you plan to work while studying abroad) <br>5. Prepare your tuition and pay it before the deadline. <br>6. Buy your airline ticket after you receive your VISA, not before! </div> <div class="tab-pane fade" id="tab6"> <div class="row"> <p class="about-title"><a href="#tab6" id="step6">Cheap Travel Tips</p></a> I prefer to travel by land, to see the cities, the people, and the environments on the way, but sometimes I just don’t have the time to spend a few weeks or months crossing over land. In that case I do take planes. In the course of these flights, I have learned a few tricks. I have learned how to maximize my flexibility to lower my price, to use buddy passes, to make small regional hops and to hitchhike flights. <p class="about-title">Flexibility</p> The more flexibility you have with dates and locations, the more money you can save. For my last trip from Europe to the USA, I was able to get a flight, including all fees, taxes and Insurance for $200. I used two different websites Skyscanner.com and Momundo.com, both of which allow me to search whole months or even whole years and search multiple arrival and departure cities. I use both websites because they give different results. My flight time was flexible, I wanted to fly either in October or November, so I searched those months. Next I didn’t really care which city I left from, as I could easily travel to any major city in Europe for cheap. I also didn’t really care where I ended up in the USA, as I could also travel within the USA for fairly cheap. The tickets I found were as much as $1600, but one ticket was the cheapest of them all, Paris to New York City for $200. I bought it, and a few weeks later I traveled to the USA.<br> When you are looking for flights you should try and be flexible about the date that you travel on. The more flexible you are, the cheaper the ticket. <p class="about-title">Holidays</p> My sister came to visit me in Asia during the summer, most of the tickets were %$2000+ but she was able to find a flight from the USA to China for only $400. Why was it so cheap? She left the USA on a Holiday, July 4th, the US Independence Day, and because very few people travel on this date she got a very cheap ticket. She also headed back to the USA at the end of the Chinese golden week, a time when everyone in china is heading home, and not to another country. Both ways her planes were almost empty, and both ways, here tickets were cheap. <p class="about-title">Airport Hopping </p> Long ago I was headed to the USA from the Ukraine. Flights were normally about $1500. To save money I flew from one regional airport the next and saved about $1000. First I flew from the Ukraine to Turkey for $80, then after a short layover I was off to Germany for $50. I dashed to my next flight to Paris which was only 30$. In Paris I slept most of my 8 hour layover then headed to New York for $300. <p class="about-title">Last Minute Tickets</p> Did you know that some airlines will give you a discount on tickets that will be boarding ASAP? Many airlines won’t drop the tickets unless there are quite a few empty seats and it is the very last minute, but I have gotten some very cheap tickets by waiting at the airport and asking about discounted flights. </div> </div> </div> </div> </div> </div> </div> <br> <!-- FOOTER --> <script> jQuery(function($){ $("a.tab1-anchor").click(function(e){ e.preventDefault(); var theTab = "#" + $(this).data('target'); $(theTab).trigger('click'); }); }); </script>
×
×
  • 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.