EasyUI Forum
May 05, 2024, 05:22:18 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1] 2 3 ... 8
1  General Category / EasyUI for jQuery / Re: datebox with function to format on: December 24, 2014, 02:12:05 PM
Thanks alot!! You're a genius!!!  Smiley Wink Wink Cheesy Cheesy Grin Kiss Kiss Kiss Cry Cry Cry
2  General Category / EasyUI for jQuery / datebox with function to format on: December 23, 2014, 08:59:11 AM
I tried to give a format date to datebox as "d/m/y", but it turned out to be incorrect. The code seems to work in the past. Correct me if i'm wrong, and here is the link: http://jsfiddle.net/p8czxu8c/
3  General Category / EasyUI for jQuery / searchbox with onSelect on: October 02, 2014, 03:03:39 AM
I want whenever we select menu, the selected menu has the icon in front of it. Please see the example:
http://jsfiddle.net/8mxcc4xv/
Can we do so ? Sad Sad
4  General Category / EasyUI for jQuery / Re: CRUD example vs Data grid example issues? on: October 02, 2014, 02:44:21 AM
Hope this will work.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="keywords" content="flight">
<meta name="description" content="Flight Assingment data grid">
<title>Flight Assignment</title>
<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/black/easyui.css">
<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/demo/demo.css">
<style type="text/css">
#fm{
margin:0;
padding:10px 30px;
font-size:18px;
}
.ftitle{
font-size:32px;
font-weight:bold;
color:#666;
padding:5px 0;
margin-bottom:10px;
border-bottom:1px solid #ccc;
}
.fitem{
margin-bottom:5px;
font-size:18px;
}
.fitem label{
display:inline-block;
width:80px;
font-size:18px;
}
</style>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.min.js"></script>
<script type="text/javascript" src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript">
var url;
function newUser(){
$('#dlg').dialog('open').dialog('setTitle','New User');
$('#fm').form('clear');
url = 'save_user.php';
}
function editUser(){
var row = $('#dg').datagrid('getSelected');
if (row){
$('#dlg').dialog('open').dialog('setTitle','Edit User');
$('#fm').form('load',row);
url = 'update_user.php?id='+row.id;
}
}
function saveUser(){
$('#fm').form('submit',{
url: url,
onSubmit: function(){
return $(this).form('validate');
},
success: function(result){
var result = eval('('+result+')');
if (result.success){
$('#dlg').dialog('close'); // close the dialog
$('#dg').datagrid('reload'); // reload the user data
} else {
$.messager.show({
title: 'Error',
msg: result.msg
});
}
}
});
}
function removeUser(){
var row = $('#dg').datagrid('getSelected');
if (row){
$.messager.confirm('Confirm','Are you sure you want to remove this flight?',function(r){
if (r){
$.post('remove_user.php',{id:row.id},function(result){
if (result.success){
$('#dg').datagrid('reload'); // reload the user data
} else {
$.messager.show({ // show error message
title: 'Error',
msg: result.msg
});
}
},'json');
}
});
}
}
//} something's wrong here!!
</script>
</head>
<body bgcolor="#3d3d3d">
<table id="dg" title="Flight Assignment" class="easyui-datagrid" style="width:925px;height:1100px"
url="get_users.php"
toolbar="#toolbar"
data-options="
pagination:true,
rownumbers:true,
fitColumns:true,
singleSelect:true,
">
<thead>
<tr>
<th data-options="field:'date',width:40">DATE</th>
<th data-options="field:'cycle',width:20">CYCLE</th>
<th data-options="field:'pilot',width:50">PILOT</th>
<th data-options="field:'pstatus',width:25">STATUS</th>
<th data-options="field:'tfo',width:50">TFO</th>
<th data-options="field:'callsign',width:30">CALL SIGN</th>
<th data-options="field:'psgrs',width:20">PSGRS</th>
<th data-options="field:'acft',width:20">ACFT</th>
<th data-options="field:'dest',width:25">DEST</th>
<th data-options="field:'depart',width:25">DEPART</th>
<th data-options="field:'arrive',width:25">ARRIVE</th>
</tr>
</thead>
</table>
<div id="toolbar">
<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="newUser()">New Flight</a>
<a href="#" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="editUser()">Edit Flight</a>
<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" plain="true" onclick="removeUser()">Remove Flight</a>
</div>

<div id="dlg" class="easyui-dialog" style="width:400px;height:500px;padding:10px 20px"
closed="true" buttons="#dlg-buttons">
<div class="ftitle">Flight Information</div>
<form id="fm" method="post" novalidate>
<div class="fitem">
<label>Date:</label>
<input name="date" class="easyui-validatebox" required="true">
</div>
<div class="fitem">
<label>Cycle</label>
<input name="cycle" class="easyui-validatebox" required="true">
</div>
<div class="fitem">
<label>Pilot:</label>
<input name="pilot" class="easyui-validatebox" required="true">
</div>
<div class="fitem">
<label>Pilot Status:</label>
<input name="pstatus" class="easyui-validatebox" required="true">
</div>
<div class="fitem">
<label>TFO:</label>
<input name="tfo" class="easyui-validatebox" required="true">
</div>
<div class="fitem">
<label>Call Sign:</label>
<input name="callsign" class="easyui-validatebox" required="true">
</div>
<div class="fitem">
<label>PSGRS:</label>
<input name="psgrs" class="easyui-validatebox" required="true">
</div>
<div class="fitem">
<label>ACFT:</label>
<input name="acft" class="easyui-validatebox" required="true">
</div>
<div class="fitem">
<label>DEST:</label>
<input name="dest" class="easyui-validatebox" required="true">
</div>
<div class="fitem">
<label>Depart:</label>
<input name="depart" class="easyui-validatebox" required="true">
</div>
<div class="fitem">
<label>Arrive:</label>
<input name="arrive" class="easyui-validatebox" required="true">
</div>
</form>
</div>
<div id="dlg-buttons">
<a href="#" class="easyui-linkbutton" iconCls="icon-ok" onclick="saveUser()">Save</a>
<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dlg').dialog('close')">Cancel</a>
</div>
</body>
</html>
5  General Category / EasyUI for jQuery / Re: Combobox with a special character!! on: September 25, 2014, 06:20:12 PM
Thanks, Agus Sigit Wisnubroto! That help me alot Smiley
6  General Category / EasyUI for jQuery / Combobox with a special character!! on: September 24, 2014, 08:19:33 PM
I have no idea how to deal with those special characters. Please see below:
Code:
<input class="easyui-combobox" data-options="
                        valueField: 'label',
                        textField: 'value',
                        data: [{
                            label: 'java',
                            value: 'alc\\o\\h//ol'
                        },{
                            label: 'perl',
                            value: 'mr. john's'
                        },{
                            label: 'ruby',
                            value: '<script>alert(\'testggg\');</\script>'
                        }]" />


How can i make all of that to display as it was ? please help!! Cry Cry
7  General Category / EasyUI for jQuery / Combobox: select with 'group' property on: September 19, 2014, 07:23:16 PM
Can you tell me if i'd be able to use 'group' property with 'select'.
Code:
<select data-options='                        
                        method: "get",
                        multiple:false,
                        valueField:"value",
                        textField:"text",
                        groupField:"group"
                    ' >
   <option >Text in group1</option>
   <option >Text in group2</option>
   <option >Text in group3</option>
</select>
8  General Category / EasyUI for jQuery / Sort column properties on: September 10, 2014, 02:34:01 AM
I'm not sure if i miss it but all i want is to make datagrid sort(local sort) when data load successfully. Please help me guys!! Sad Sad
9  General Category / EasyUI for jQuery / Re: Combobox went wrong in wordpress on: September 10, 2014, 02:30:42 AM
Thanks aswzen and Pierre. What Pierre said was right. Anyways thanks you guys so much.  Smiley Smiley Wink Cheesy Grin Cool Cool Tongue Tongue Kiss Kiss Kiss
10  General Category / EasyUI for jQuery / Combobox went wrong in wordpress on: September 09, 2014, 01:13:41 AM
I don't have idea what's going on with combobox. Please help me!!!
11  General Category / EasyUI for jQuery / Re: Define loading content in panel on: September 05, 2014, 09:57:57 PM
Here's what i found http://www.jeasyui.com/forum/index.php?topic=3641.0 .
Should be found it sooner..
12  General Category / EasyUI for jQuery / Define loading content in panel on: September 05, 2014, 02:39:27 AM
Is there a way to make panel refresh even though it doesn't contain < href='' > ?
http://jsfiddle.net/etqsat3f/
13  General Category / EasyUI for jQuery / Re: subgrid+Edit form in expanded row details on: August 21, 2014, 02:26:21 AM
Thanks, You are genius!!!  Smiley Smiley Wink Wink Cheesy Cheesy Grin Grin Shocked Cool Cool Huh Tongue Embarrassed Lips sealed Kiss Kiss
14  General Category / EasyUI for jQuery / Prevent page reload on form submit on: August 21, 2014, 02:24:54 AM
I wonder if there is a way to prevent page reload on form submit in Basic CRUD Application.
15  General Category / EasyUI for jQuery / subgrid+Edit form in expanded row details on: August 15, 2014, 08:00:09 PM
I have no idea why it doesn't work and still cannot figure out what's going on. I just add expand row details inside subgrid and it seems does work the first time we expanded it only( try re-expand it again, and it doesn't work ).
here is the source:
http://jsfiddle.net/4uw4x2ww/
Please help me!!!!  Cry Cry Cry Cry Cry Cry
Pages: [1] 2 3 ... 8
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!