Ankhbayar Lhagvadorj avatar Ankhbayar Lhagvadorj committed 58a291a

Fix index html. Fix conv tool

Comments (0)

Files changed (3)

         ret_list = []
 
         if filter_currency:
-            filter_currency = filter_currency.split("|")
+            filter_currency = filter_currency.upper().split("|")
 
         if filter_currency and myorder:
             hansh_list = Xansh.get_all_to_dic()
     def get(self):
         filter_currency = self.request.get('currency', False)
         myorder = self.request.get('myorder', False)
-        myorder = self.request.get('myorder', False)
         ret_list = []
 
         if filter_currency:
-            filter_currency = filter_currency.split("|")
+            filter_currency = filter_currency.upper().split("|")
 
         if filter_currency and myorder:
             hansh_list = Xansh.get_all_to_dic()

templates/hansh.html

 </tbody><tfoot><tr><td>{{source|escape}} :</td><td align="right"><a href="{{source_link}}" target="_blank"><strong>» Монгол банк</strong></a></td></tr>{% if use_conv_tool %}
 	<tr>
 		<td colspan="2">
-			<label for="mnt" style="width:8%; display:inline-block;">Төгрөг </label> <input type="text" id="mnt" style="width:90%;" /> <br />
-			<select id="rate" style="width:8%;">{% for row in hansh_list %}
+			<label for="mnt" style="width:15%; display:inline-block; padding-left: 10px;">Төгрөг </label> <input type="text" id="mnt" style="width:80%;" /> <br />
+			<select id="rate" style="width:15%; display:inline-block;  padding-left: 10px;">{% for row in hansh_list %}
 				<option value="{{row.rate_float}}"><img src="/img/{{row.code}}.png" /> {{row.code}} </option>
 			{% endfor %}</select> 
-			</label><input type="text" id="currency" style="width:90%;"/> </br>
+			</label><input type="text" id="currency" style="width:80%;"/> </br>
 			
 		</td>
 	</tr>

templates/index.html

 src=&quot;http://monxansh.appspot.com/xansh.html?currency=USD|EUR|JPY|GBP|RUB|CNY|KRW&quot;&gt;&lt;/iframe&gt;
 	</pre>
 	<iframe style="width:180px;font-size:11px;height:210px;border: none;overflow:hidden;margin:0;" src="http://monxansh.appspot.com/xansh.html?currency=USD|EUR|JPY|GBP|RUB|CNY|KRW"></iframe>
+	<h2>Параметерүүд</h2>
+	<p> 
+		<b>currency</b> - Харах ханшууд. Валютын 3 үсэгтэй кодуудыг | ээс тусгаарлан илгээх. <br/>
+		<b>currency_rate_title</b> - Ханш багнын гарчиг солих. <br/>
+		<b>currency_title</b> - Валют багнын гарчиг солих. <br/>
+		<b>source</b> - Эх сурвалж текстийг солих. <br/>
+		<b>conv_tool</b>  - Ханш хөрвүүлэх түүл гарна. <br/>
+		<b>myorder</b>  - Ханш харагдах дараалалыг currency parameter -ээс авна. <br/>
+	</p>
 
 	<h2>Олон хэл</h2>
 	<pre>&lt;iframe
 <iframe
 	style="width:180px;font-size:11px;height:210px;border: none;overflow:hidden;margin:0;" 
 	src="http://monxansh.appspot.com/xansh.html?currency=USD|EUR|JPY|GBP|RUB|CNY|KRW&currency_title=Currency&currency_rate_title=Rate&source=Source"></iframe>
-
+	
 </body>
 </html>
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.