Jump to content

John01

Members
  • Content Count

    14
  • Joined

  • Last visited

Community Reputation

0 Neutral

About John01

  • Rank
    Member
  1. John01

    Class 'SoapClient' not found

    Hi Sorry, new to PHP. How can I check? Thanks Regards
  2. John01

    Class 'SoapClient' not found

    Hi Here is the output. Thanks Regards https://dl.dropboxusercontent.com/u/3486413/PHP%20Version%205.pdf
  3. John01

    Class 'SoapClient' not found

    Hi Below is what I get soap related in phpinfo output. Thanks Regards soap Soap Client => enabled Soap Server => enabled Directive => Local Value => Master Value soap.wsdl_cache => 1 => 1 soap.wsdl_cache_dir => /tmp => /tmp soap.wsdl_cache_enabled => 1 => 1 soap.wsdl_cache_limit => 5 => 5 soap.wsdl_cache_ttl => 86400 => 86400
  4. Hi I am getting 'Class 'SoapClient' not found' error on line; $client = new SoapClient("http://mydomain.com/mywebservice.asmx?wsdl"); I have got a php.ini with entries as attached. What more can I check to fix this? Thanks Regards
  5. John01

    Spacing issues

    Hi I have HTML and CSS as per below at the end. The result is; I have three issues; A. The two check boxes and their labels are way too up with too much space beneath them. How can I get the same space as the selection inputs? B. The width of the label is wider than the selection inputs. How to make them the same? C. How to pad the labels text to match the lefts with the text in selection inputs? Thanks Regards <div id="asbooked1" class="forminput_wrapper1"> <label name = 'lblasbooked' class='forminput2' >As Booked</label> <input type='checkbox' name='asbooked[]' value='2' id='asbooked1' /> </div> <div id="username-wrapper1" class="forminput_wrapper1"> <select id="houroptions" value="" name="fromhour[]" placeholder="From Hour (hh)" class="forminput1" > <option>From Hour (hh)</option> <option>00</option> ... <option>23</option> </select> <select id="minuteoptions" value="" name="fromminutes[]" placeholder="From Minute (mm)" class="forminput1" > <option>From Minutes (mm)</option> <option>00</option> ... <option>55</option> </select> </div> <div id="password-wrapper1" class="forminput_wrapper1"> <select id="houroptions1" value="" name="tohour[]" placeholder="To Hour (hh)" class="forminput1" > <option>To Hour (hh)</option> <option>00</option> ... <option>23</option> </select> <select id="minuteoptions1" value="" name="tominutes[]" placeholder="From Minute (mm)" class="forminput1" > <option>To Minutes (mm)</option> <option>00</option> ... <option>55</option> </select> </div> <div id="asbooked1" class="forminput_wrapper1"> <label name = 'lbldidnotwork' class='forminput2' >Did Not Work</label> <input type='checkbox' name='didnotwork[]' value='2' id='didnotwork1' /> </div> .forminput_wrapper1 .forminput1 { font-size:13px; height:30px; border:none; border-bottom:1px solid #565656; background:none; color:#B4B4B4; border-radius:0; font-family:'Open Sans'; width: 49%; display: inline-block; float: left; padding-right: 30px; text-align: right; } .forminput2 { font-size:13px; height:30px; border:none; border-bottom:1px solid #565656; background:none; color:#B4B4B4; border-radius:0; font-family:'Open Sans'; width: 49%; display: inline-block; float: left; padding-right: 30px; text-align: left; }
  6. John01

    Concatenating form variables

    Hi I have changed this single input; <input type="text" name="fromtime[]" value="" placeholder="From Time (hh:mm)" class="forminput" list="timeoptions" /> into two selects; <div id="username-wrapper1" class="forminput_wrapper1"> <select id="houroptions" value="" name="fromhour[]" placeholder="From Hour (hh)" class="forminput1" > <option>00</option> ... <option>23</option> </select> <select id="minuteoptions" value="" name="fromminutes[]" placeholder="From Minute (mm)" class="forminput1" > <option>00</option> ... <option>59</option> </select> </div> ie I have broken down time entry into hours and minute entries. How can I now join the values of hour and minutes with a : (colon) in between into fromtime[] variable and at what location can I do it? Can it be done at form level once values of hour and minutes are assigned or does it have to be done elsewhere? Thanks Regards
  7. John01

    ID already defined

    Hi I have searched and IDs are not duplicate. I renamed them in any case and am still getting warnings. Thanks Regards ( ! ) Warning: XSLTProcessor::transformToXml(): ID timesheet-wrapper1 already defined in C:\HS\Client Portal Mobile\includes\dataaccess.php on line 29 Call Stack # Time Memory Function Location 1 0.0080 138216 {main}( ) ...\settimesheet.php:0 2 0.0110 217872 Core->GetBookedJobsStaffForTimesheet( ???, ???, ??? ) ...\settimesheet.php:17 3 0.6470 307688 Core->TransformXml( ???, ??? ) ...\dataaccess.php:194 4 0.6480 308416 transformToXml ( ??? ) ...\dataaccess.php:29
  8. John01

    ID already defined

    Hi I am getting a bunch of below warnings. What do they mean and how can they be fixed? Thanks Regards ! ) Warning: XSLTProcessor::transformToXml(): ID timesheet-wrapper already defined in C:\HS\Client Portal Mobile\includes\dataaccess.php on line 29 Call Stack # Time Memory Function Location 1 0.0330 137944 {main}( ) ...\settimesheet.php:0 2 0.0370 217600 Core->GetBookedJobsStaffForTimesheet( ???, ???, ??? ) ...\settimesheet.php:17 3 1.1201 307416 Core->TransformXml( ???, ??? ) ...\dataaccess.php:194 4 1.1231 308144 transformToXml ( ??? ) ...\dataaccess.php:29 ( ! ) Warning: XSLTProcessor::transformToXml(): ID timeoptions already defined in C:\HS\Client Portal Mobile\includes\dataaccess.php on line 29 Call Stack # Time Memory Function Location 1 0.0330 137944 {main}( ) ...\settimesheet.php:0 2 0.0370 217600 Core->GetBookedJobsStaffForTimesheet( ???, ???, ??? ) ...\settimesheet.php:17 3 1.1201 307416 Core->TransformXml( ???, ??? ) ...\dataaccess.php:194 4 1.1231 308144 transformToXml ( ??? ) ...\dataaccess.php:29 ( ! ) Warning: XSLTProcessor::transformToXml(): ID houroptions already defined in C:\HS\Client Portal Mobile\includes\dataaccess.php on line 29 Call Stack # Time Memory Function Location 1 0.0330 137944 {main}( ) ...\settimesheet.php:0 2 0.0370 217600 Core->GetBookedJobsStaffForTimesheet( ???, ???, ??? ) ...\settimesheet.php:17 3 1.1201 307416 Core->TransformXml( ???, ??? ) ...\dataaccess.php:194 4 1.1231 308144 transformToXml ( ??? ) ...\dataaccess.php:29
  9. John01

    PHP IDE for Visual Studio

    Hi Is there a good PHP IDE for Visual Studio? I am trying VS.PHP with mixed results; sometimes it gets stuck etc. If not, is there a better non-VS alternative that provides good local debug features with local web server? Thanks Regards
  10. John01

    Hours:Minutes drop downs

    Hi Newbie to PHP. I have below code to allow entry of time (hh:mm); <div id="username-wrapper" class="forminput_wrapper"> <input type="text" name="fromtime[]" value="" placeholder="From Time (hh:mm)" class="forminput" /> </div> How can I change the input type above into two drop downs; one each for hours and minutes and then join the user entered hh and mm values into a single hh:mm value? Thanks Regards
  11. Hi Where do PHPMailer errors end up so I can check them for why the email is not going through? Thanks Regards
  12. Hi Complete newbie to PHP. What do I need to install on a Win 7 pc to start dev and debug PHP web apps? Thanks Regards
  13. John01

    Time drop down in form

    Hi Total newbie to PHP. I have below code to allow entry of time (hh:mm); <div id="username-wrapper" class="forminput_wrapper"> <input type="text" name="fromtime[]" value="" placeholder="From Time (hh:mm)" class="forminput" /> </div> How can I turn the input type into a drop down with predefined time values (01:00, 01:15, 01:30 etc) as well as letting user enter any time they want? Thanks Regards
  14. John01

    Where is relevant code?

    Hi I am new to PHP. I have inherited a site. One of the pages has a 'Register Interest' button, screen attached. All the relevant code, as far as I can see, is given below at the end across various files. My question is where is the code that gets executed when 'Register Interest' button is clicked? Thanks Regards future_jobs.php --------------- <?php include 'template/header.php'; ?> <!-- BEGIN TITLE --> <h1 class="post-title-margin">Future Jobs</h1> <!-- END TITLE --> <!-- BEGIN CONTENT --> <div class="entry-content"> <?php $dataAccess = Core::getInstance(); $futureJobs = $dataAccess->GetUpcomingJobs($_SESSION['username'],$_SESSION['password']); echo $futureJobs; ?> </div> <!-- END CONTENT --> <?php include 'template/footer.php'; ?> dataacess.php ------------- public function GetUpcomingJobs($username, $password){ $crypt = new proCrypt; $params = new stdClass(); $decryptedUsername = $crypt->decrypt($username); $decryptedPassword = $crypt->decrypt($password); $client = new SoapClient("http://staff.domain.tld/mobile/mobilewebservice.asmx?wsdl"); $params->Username = $decryptedUsername; $params->Password = $decryptedPassword; $result = $client->GetUpcomingJobs($params)->GetUpcomingJobsResult; $resultTransform = $this->TransformXml($result, 'includes/ServiceResultTransform.xsl'); $resultTransform = str_replace('@@username@@', $decryptedUsername, $resultTransform); return $resultTransform; } ServiceResultTransform.xsl -------------------------- <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:php="http://php.net/xsl" xmlns:media="http://search.yahoo.com/mrss/" version="1.0"> <xsl:output method="html" indent="yes" version="4.0" omit-xml-declaration="yes"/> <xsl:template match="/rss"> <xsl:for-each select="channel/item"> <xsl:choose> <xsl:when test="media:thumbnail"> <xsl:element name="div"> <xsl:attribute name="class">scene3D</xsl:attribute> <xsl:element name="div"> <xsl:attribute name="class">flip</xsl:attribute> <xsl:element name="div"> <xsl:element name="p"> <xsl:element name="a"> <xsl:attribute name="class">news-link</xsl:attribute> <xsl:attribute name="href"> /news_item.php?newsid=<xsl:value-of select="guid"/> </xsl:attribute> <xsl:value-of select="title"/> </xsl:element> </xsl:element> </xsl:element> <xsl:element name="div"> <xsl:element name="img"> <xsl:attribute name="src"> <xsl:value-of select="media:thumbnail/@url"/> </xsl:attribute> </xsl:element> </xsl:element> </xsl:element> </xsl:element> </xsl:when> <xsl:otherwise> <xsl:element name="div"> <xsl:attribute name="class">scene3D</xsl:attribute> <xsl:element name="div"> <xsl:attribute name="class">flip</xsl:attribute> <xsl:element name="div"> <xsl:element name="p"> <xsl:element name="a"> <xsl:attribute name="class">news-link</xsl:attribute> <xsl:attribute name="href"> /news_item.php?newsid=<xsl:value-of select="guid"/> </xsl:attribute> <xsl:value-of select="title"/> </xsl:element> </xsl:element> </xsl:element> <xsl:element name="div"> <xsl:attribute name="style">background: none repeat scroll 0 0 #333333;</xsl:attribute> <xsl:element name="p"> <xsl:element name="a"> <xsl:attribute name="class">news-link</xsl:attribute> <xsl:attribute name="href"> /news_item.php?newsid=<xsl:value-of select="guid"/> </xsl:attribute> <xsl:value-of select="title"/> </xsl:element> </xsl:element> </xsl:element> </xsl:element> </xsl:element> </xsl:otherwise> </xsl:choose> </xsl:for-each> </xsl:template> <xsl:template match="/NewDataSet"> <xsl:for-each select="BookedJobs"> <xsl:call-template name="CreateJobHtml"> <xsl:with-param name="job" select="."></xsl:with-param> <xsl:with-param name="count" select="position()"></xsl:with-param> </xsl:call-template> </xsl:for-each> <xsl:for-each select="UpcomingJobs"> <xsl:call-template name="CreateJobHtml"> <xsl:with-param name="job" select="."></xsl:with-param> <xsl:with-param name="count" select="position()"></xsl:with-param> </xsl:call-template> </xsl:for-each> <xsl:for-each select="StaffPreferred"> <xsl:call-template name="CreatePreferredHtml"> <xsl:with-param name="preference" select="."></xsl:with-param> <xsl:with-param name="count" select="position()"></xsl:with-param> </xsl:call-template> </xsl:for-each> </xsl:template> <xsl:template name="CreateJobHtml"> <xsl:param name="job"></xsl:param> <xsl:param name="count"></xsl:param> <div class="toggleboxgrey"> <xsl:element name="div"> <xsl:attribute name="id">toggleclosed-button<xsl:value-of select="$count"/></xsl:attribute> <xsl:attribute name="class">toggleclosed-button</xsl:attribute> </xsl:element> <xsl:element name="div"> <xsl:attribute name="id">boxclosedtoggle<xsl:value-of select="$count"/></xsl:attribute> <xsl:attribute name="class">boxclosedtoggle</xsl:attribute> <xsl:choose> <xsl:when test="$job/DateTo and $job/DateTo != ''"> <xsl:value-of select="$job/DateFrom"/> - <span class="date"><xsl:value-of select="$job/DateTo"/></span><br /><xsl:value-of select="substring($job/Venue,1,20)"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$job/DateFrom"/> - <xsl:value-of select="substring($job/Venue,1,20)"/> </xsl:otherwise> </xsl:choose> </xsl:element> <xsl:element name="div"> <xsl:attribute name="id">boxclosed<xsl:value-of select="$count"/></xsl:attribute> <xsl:attribute name="class">boxclosed</xsl:attribute> <div class="box listing"> <p><span class="table-title">Event ID:</span><xsl:value-of select="$job/ID"/></p> <p><span class="table-title">Client:</span><xsl:value-of select="$job/Client"/></p> <xsl:choose> <xsl:when test="$job/DateTo and $job/DateTo != ''"> <p><span class="table-title">Date:</span><span class="date"><xsl:value-of select="$job/DateFrom"/></span> - <span class="date"><xsl:value-of select="$job/DateTo"/></span></p> </xsl:when> <xsl:otherwise> <p><span class="table-title">Date:</span><span class="date"><xsl:value-of select="$job/DateFrom"/></span></p> </xsl:otherwise> </xsl:choose> <p><span class="table-title">From:</span><span class="date"><xsl:value-of select="$job/TimeFrom"/></span></p> <p><span class="table-title">To:</span><xsl:value-of select="$job/TimeTo"/></p> <p><span class="table-title">Venue:</span><xsl:value-of select="$job/Venue"/></p> <p><span class="table-title">Map:</span> <xsl:element name="a"> <xsl:choose> <xsl:when test="$job/VenuePostcode and $job/VenuePostcode != ''"> <xsl:attribute name="href">http://maps.google.co.uk/maps?q=<xsl:value-of select="$job/VenuePostcode"/></xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="href">http://maps.google.co.uk/maps?q=<xsl:value-of select="$job/Venue"/></xsl:attribute> </xsl:otherwise> </xsl:choose> <xsl:attribute name="target">_blank</xsl:attribute>View Map </xsl:element> </p> <p><span class="table-title">Uniforms:</span><xsl:value-of select="$job/Uniforms"/></p> <p><span class="table-title">Staff Role:</span><xsl:value-of select="$job/Staff_x0020_Role"/></p> <xsl:if test="$job/Comments and $job/Comments != ''"> <p><span class="table-title">Additional Information:</span></p> <p><xsl:value-of select="$job/Comments"/></p> </xsl:if> <xsl:element name="form"> <xsl:attribute name="id">registerinterest-form<xsl:value-of select="$count"/></xsl:attribute> <xsl:attribute name="class">registerinterest</xsl:attribute> <xsl:element name="input"> <xsl:attribute name="type">hidden</xsl:attribute> <xsl:attribute name="name">eventID</xsl:attribute> <xsl:attribute name="id">eventID</xsl:attribute> <xsl:attribute name="value"> <xsl:value-of select="$job/DateFrom"/> - <xsl:value-of select="substring($job/Venue,1,20)"/> </xsl:attribute> </xsl:element> <xsl:element name="input"> <xsl:attribute name="type">hidden</xsl:attribute> <xsl:attribute name="name">username</xsl:attribute> <xsl:attribute name="id">username</xsl:attribute> <xsl:attribute name="value">@@username@@</xsl:attribute> </xsl:element> <input type="submit" name="submit" value="Register Interest" id="submit" /> </xsl:element> </div> </xsl:element> </div> </xsl:template> <xsl:template name="CreatePreferredHtml"> <xsl:param name="preference"></xsl:param> <xsl:param name="count"></xsl:param> <div class="toggleboxgrey"> <xsl:element name="div"> <xsl:attribute name="id">toggleclosed-button<xsl:value-of select="$count"/></xsl:attribute> </xsl:element> <xsl:element name="div"> <xsl:attribute name="id">boxclosedtoggle<xsl:value-of select="$count"/></xsl:attribute> <xsl:value-of select="$preference/Column1"/> - <xsl:value-of select="$preference/Client"/> </xsl:element> <xsl:element name="div"> <xsl:attribute name="id">boxclosed<xsl:value-of select="$count"/></xsl:attribute> <div class="box listing"> <p><span class="table-title">Client:</span><xsl:value-of select="$preference/Client"/></p> <p><span class="table-title">Date:</span><span class="date"><xsl:value-of select="$preference/Column1"/></span></p> <p><span class="table-title">Venue:</span><xsl:value-of select="$preference/Venue"/></p> </div> </xsl:element> </div> </xsl:template> </xsl:stylesheet>
×

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.