<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Something missing in ui_view.inc]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3899&amp;type=atom" />
	<updated>2013-02-25T15:24:47Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=3899</id>
		<entry>
			<title type="html"><![CDATA[Re: Something missing in ui_view.inc]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15805#p15805" />
			<content type="html"><![CDATA[<p>Ok, Haakon0603, I think I understand what you mean.</p><p>The &#039;else if&#039; sentences should be &#039;elseif&#039;.</p><p>In this specific case this doesn&#039;t matter. However for better readness of the code, I will change it.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2013-02-25T15:24:47Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15805#p15805</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Something missing in ui_view.inc]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15804#p15804" />
			<content type="html"><![CDATA[<p>Please don&#039;t mess with php and js, and do what I told you.</p><p>There is no problem here.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2013-02-25T14:59:46Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15804#p15804</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Something missing in ui_view.inc]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15802#p15802" />
			<content type="html"><![CDATA[<p>I know, but the opening and closing {} does not match.<br />Also the line:<br />&nbsp; &nbsp; $js = &quot; </p><p>does not mean anything.</p><p>The way it is now, you don&#039;t know which function is inside the other.</p>]]></content>
			<author>
				<name><![CDATA[haakon0603]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=14301</uri>
			</author>
			<updated>2013-02-25T14:27:45Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15802#p15802</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Something missing in ui_view.inc]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15801#p15801" />
			<content type="html"><![CDATA[<p>If you want to look at the js file created from this PHP function, then please look into file /company/0/js_cache/date_picker.js.</p><p>Here you can see that everything is ok. It is quite normal to have function inside another function in Javascript.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2013-02-25T13:13:50Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15801#p15801</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Something missing in ui_view.inc]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15799#p15799" />
			<content type="html"><![CDATA[<p>Some { or } missing from the functions below and I am not sure which functions belong to which functions (if they are nested functions)?<br />The code starts around line 830.</p><p>function get_js_date_picker()<br />{<br />&nbsp; &nbsp; global $go_debug;<br />&nbsp; &nbsp; $fpath = company_path().&#039;/js_cache/&#039;.&#039;date_picker.js&#039;;</p><p>&nbsp; &nbsp; if (!file_exists($fpath) || $go_debug) {</p><p>&nbsp; &nbsp; global $dateseps, $date_system, $tmonths;</p><p>&nbsp; &nbsp; $how = user_date_format();&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // 0 = us/ca, 1 = eu, au, nz, 2 = jp, sw<br />&nbsp; &nbsp; $sep = $dateseps[user_date_sep()];&nbsp; &nbsp; &nbsp; &nbsp; // date separator<br />&nbsp; &nbsp; $wstart = (($date_system == 1 || $date_system == 2 || $date_system == 3) ? 6 : ($how == 0 || $how == 3 ? 0 : 1));&nbsp; &nbsp; // weekstart (sun = 0, mon = 1)<br />&nbsp; &nbsp; $months = array(_(&quot;January&quot;),_(&quot;February&quot;),_(&quot;March&quot;),_(&quot;April&quot;),_(&quot;May&quot;),_(&quot;June&quot;),_(&quot;July&quot;),_(&quot;August&quot;),_(&quot;September&quot;),_(&quot;October&quot;),_(&quot;November&quot;),_(&quot;December&quot;));<br />&nbsp; &nbsp; $wdays = array(_(&quot;Su&quot;),_(&quot;Mo&quot;),_(&quot;Tu&quot;),_(&quot;We&quot;),_(&quot;Th&quot;),_(&quot;Fr&quot;),_(&quot;Sa&quot;));<br />&nbsp; &nbsp; $wno = _(&quot;W&quot;); // week no<br />&nbsp; &nbsp; $back = _(&quot;Back&quot;);<br />&nbsp; &nbsp; if ($date_system == 1)<br />&nbsp; &nbsp; &nbsp; &nbsp; list($cyear, $cmon, $cday) = gregorian_to_jalali(date(&quot;Y&quot;), date(&quot;n&quot;), date(&quot;j&quot;));<br />&nbsp; &nbsp; else if ($date_system == 2)<br />&nbsp; &nbsp; &nbsp; &nbsp; list($cyear, $cmon, $cday) = gregorian_to_islamic(date(&quot;Y&quot;), date(&quot;n&quot;), date(&quot;j&quot;));</p><br /><p>&nbsp; &nbsp; $js = &quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />function positionInfo(object) {<br />&nbsp; var p_elm = object;<br />&nbsp; this.getElementLeft = getElementLeft;<br />&nbsp; function getElementLeft() {<br />&nbsp; &nbsp; var x = 0;<br />&nbsp; &nbsp; var elm;<br />&nbsp; &nbsp; if(typeof(p_elm) == &#039;object&#039;){<br />&nbsp; &nbsp; &nbsp; elm = p_elm;<br />&nbsp; &nbsp; } else {<br />&nbsp; &nbsp; &nbsp; elm = document.getElementById(p_elm);<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; while (elm != null) {<br />&nbsp; &nbsp; &nbsp; x+= elm.offsetLeft;<br />&nbsp; &nbsp; &nbsp; elm = elm.offsetParent;<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; return parseInt(x);<br />&nbsp; }<br />&nbsp; this.getElementWidth = getElementWidth;</p>]]></content>
			<author>
				<name><![CDATA[haakon0603]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=14301</uri>
			</author>
			<updated>2013-02-25T12:00:50Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15799#p15799</id>
		</entry>
</feed>
