lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | <div id="innerContainer">
|
| 2 | <div class="row header-row">
|
| 3 | <div class="col-xs-1">
|
| 4 | <a href="#main">
|
| 5 | <img alt="" src="pic/direct-back.png"/>
|
| 6 | </a>
|
| 7 | </div>
|
| 8 | <div class="col-xs-11">
|
| 9 | <div class="form-title">
|
| 10 | <!--div data-bind="visible: pageState()==1 || pageState()==2 || pageState()==3,attr:{ bookid : index}">
|
| 11 | <h1 data-bind='attr:{"data-trans":transEditAreaTitle}'></h1>
|
| 12 | </div-->
|
| 13 | <div>
|
| 14 | <h1>
|
| 15 | <span data-trans="phonebook"></span>
|
| 16 | <span data-bind='text: phoneBookCapacity'></span>
|
| 17 | <span id="simUsed" data-bind="visible:false,text:capacity().simUsed"></span>
|
| 18 | <span id="deviceUsed" data-bind="visible:false,text:capacity().deviceUsed"></span>
|
| 19 | <span id="simCapacity" data-bind="visible:false,text:capacity().simCapacity"></span>
|
| 20 | <span id="deviceCapacity" data-bind="visible:false,text:capacity().deviceCapacity"></span>
|
| 21 | </h1>
|
| 22 | </div>
|
| 23 | <div data-bind="visible: pageState()==4">
|
| 24 | <h1 data-trans="new_message"></h1>
|
| 25 | </div>
|
| 26 | </div>
|
| 27 | </div>
|
| 28 | </div>
|
| 29 | <div class="row">
|
| 30 |
|
| 31 | <div class="col-xs-2">
|
| 32 | <div class="nav_right">
|
| 33 | <ul>
|
| 34 | <li data-bind="css:{ active : pageState()==0 || pageState()==2 || pageState()==3}"><a id="listBtn" data-bind="click: btnClear" data-trans="list" href="javascript: void(0)"></a></li>
|
| 35 | <li data-bind="enable:!initFail(), css:{ active : pageState()==1}"><a id="newBtn" data-bind="click: openNewPage" data-trans="new" href="javascript: void(0)"></a></li>
|
| 36 | <!--li data-bind="visible:pageState()==3 || pageState()==2, css:{ active : pageState()==2}"><a id="editBtn" href="javascript: void(0)" data-bind="click: openEditPage" data-trans="edit"></a></li>
|
| 37 | <li data-bind="visible:pageState()==3, css:{ active : pageState()==3,}"><a id="viewBtn" href="javascript: void(0)" data-trans="view"></a></li-->
|
| 38 | <li data-bind="visible:hasSms(),css:{active : pageState()==4}"><a id="sendBtn" data-bind="click: openSendMessagePage" data-trans="send" href="javascript: void(0)"></a></li>
|
| 39 | </ul>
|
| 40 | </div>
|
| 41 | </div>
|
| 42 | <div class="col-xs-10">
|
| 43 |
|
| 44 | <form id="frmPhoneBook">
|
| 45 | <div id="editArea" data-bind="visible: pageState()==1 || pageState()==2 || pageState()==3,attr:{ bookid : index}">
|
| 46 | <!--h1 class="form-title header-bottom" data-bind='attr:{"data-trans":transEditAreaTitle}'></h1-->
|
| 47 | <h3 class="form-title" data-bind='attr:{"data-trans":transEditAreaTitle}'></h3>
|
| 48 | <div class="content">
|
| 49 | <div class="row form-group">
|
| 50 | <label data-trans='save_location' class="col-xs-3 side-right"></label>
|
| 51 | <div class="col-xs-6">
|
| 52 | <select id="selLocation" data-transid='save_location'
|
| 53 | data-bind="visible:pageState()<=2,options: locations, value: selectedLocation, optionsText: transOption('save_location'), optionsValue: 'value'" class="form-control"></select>
|
| 54 | <label data-bind="visible:pageState()==3,text:locationTransText,attr:{'data-trans':locationTrans}" class="label-content"></label>
|
| 55 | </div>
|
| 56 | </div>
|
| 57 | <div data-bind="visible:pageState()<=2" class="row form-group">
|
| 58 | <label data-trans="name" for="txtName" class="col-xs-3 side-right"></label>
|
| 59 | <div class="col-xs-6">
|
| 60 | <input id="txtName" maxlength="22" data-bind="value: name, valueUpdate: 'afterkeydown',attr:{maxlength:nameMaxLength}"
|
| 61 | type="text" name="txtName" class="required form-control"/>
|
| 62 | </div>
|
| 63 | </div>
|
| 64 | <div data-bind="visible:pageState()==3" class="row form-group">
|
| 65 | <label data-trans="name" class="col-xs-3 side-right"></label>
|
| 66 | <div class="col-xs-6">
|
| 67 | <label data-bind="text:name" class="label-content"></label>
|
| 68 | </div>
|
| 69 | </div>
|
| 70 | <div data-bind="visible:pageState()<=2" class="row form-group">
|
| 71 | <label data-trans="mobile_phone_number" for="txtMobile" class="col-xs-3 side-right"></label>
|
| 72 | <div class="col-xs-6">
|
| 73 | <input id="txtMobile" name="txtMobile"
|
| 74 | data-bind="value: mobile_phone_number,valueUpdate: 'afterkeydown',attr:{maxlength:mobileMaxLength}" type="text" class="required form-control"/>
|
| 75 | </div>
|
| 76 | </div>
|
| 77 | <div data-bind="visible:pageState()==3" class="row form-group">
|
| 78 | <label data-trans="mobile_phone_number" for="txtMobile" class="col-xs-3 side-right"></label>
|
| 79 | <div class="col-xs-6">
|
| 80 | <label data-bind="text:mobile_phone_number" class="label-content"></label>
|
| 81 | </div>
|
| 82 | </div>
|
| 83 | <div data-bind='visible: selectedLocation() != "0"' class="row form-group">
|
| 84 | <label data-trans="home_phone_number" for="txtHomeNumber" class="col-xs-3 side-right"></label>
|
| 85 | <div class="col-xs-6">
|
| 86 | <input id="txtHomeNumber"
|
| 87 | data-bind="visible:pageState()<=2,value: home_phone_number" maxlength="40" name="txtHomeNumber" type="text" class="form-control"/>
|
| 88 | <label data-bind="visible:pageState()==3,text:home_phone_number" class="label-content"></label>
|
| 89 | </div>
|
| 90 | </div>
|
| 91 | <div data-bind='visible: selectedLocation() != "0"' class="row form-group">
|
| 92 | <label data-trans="office_phone_number" for="txtOfficeNumber" class="col-xs-3 side-right"></label>
|
| 93 | <div class="col-xs-6">
|
| 94 | <input id="txtOfficeNumber"
|
| 95 | data-bind="visible:pageState()<=2,value: office_phone_number" maxlength="40" name="txtOfficeNumber" type="text" class="form-control"/>
|
| 96 | <label data-bind="visible:pageState()==3,text:office_phone_number" class="label-content"></label>
|
| 97 | </div>
|
| 98 | </div>
|
| 99 | <div data-bind='visible: selectedLocation() != "0"' class="row form-group">
|
| 100 | <label data-trans="mail" for="txtMail" class="col-xs-3 side-right"></label>
|
| 101 | <div class="col-xs-6">
|
| 102 | <input id="txtMail" name="txtMail" data-bind="visible:pageState()<=2,value: mail" type="text" class="form-control"
|
| 103 | maxlength="30"/>
|
| 104 | <label data-bind="visible:pageState()==3,text:mail" class="label-content"></label>
|
| 105 | </div>
|
| 106 | </div>
|
| 107 | <div data-bind='visible: selectedLocation() != "0"' class="row form-group">
|
| 108 | <label data-trans='group' class="col-xs-3 side-right"></label>
|
| 109 | <div class="col-xs-6">
|
| 110 | <select id="group" data-transid='group'
|
| 111 | data-bind="visible:pageState()<=2,options: groups, value: selectedGroup, optionsText: transOption('group'), optionsValue: 'value'" class="form-control"></select>
|
| 112 | <label data-bind="visible:pageState()==3,text:groupTransText,attr:{'data-trans':groupTrans}"
|
| 113 | class="label-content"></label>
|
| 114 | </div>
|
| 115 | </div>
|
| 116 | </div>
|
| 117 | <div class="form-buttons">
|
| 118 | <input data-trans='edit' data-bind="visible:pageState()==3,click:openEditPage" type="button" class="btn btn-primary"/>
|
| 119 | <input data-trans='delete' data-bind="visible:pageState()==3,click:deleteBook" type="button" class="btn btn-primary"/>
|
| 120 | <input data-trans='save' data-bind="visible:pageState()<=2" type="submit" formmethod="post" class="btn btn-primary"/>
|
| 121 | <!--input type="button" class="btn btn-primary" data-trans='send_sms'
|
| 122 | data-bind="visible:pageState()==3 && hasSms(),click:openSendMessagePage, enable:checkHasSIMCard(false)"/-->
|
| 123 | <input data-bind='click: btnClear,visible: pageState()>=2 || pageState()==3' data-trans='back' type="button" class="btn btn-primary"/>
|
| 124 | </div>
|
| 125 | </div>
|
| 126 | <div data-bind="visible: pageState()==0">
|
| 127 | <!--h1 class="form-title header-bottom">
|
| 128 | <span data-trans="phonebook"></span>
|
| 129 | <span data-bind='text: phoneBookCapacity'></span>
|
| 130 | <span id="simUsed" data-bind="visible:false,text:capacity().simUsed"></span>
|
| 131 | <span id="deviceUsed" data-bind="visible:false,text:capacity().deviceUsed"></span>
|
| 132 | <span id="simCapacity" data-bind="visible:false,text:capacity().simCapacity"></span>
|
| 133 | <span id="deviceCapacity" data-bind="visible:false,text:capacity().deviceCapacity"></span>
|
| 134 | </h1-->
|
| 135 | <div class="row form-group paddingright10 paddingtop10">
|
| 136 | <div class="col-xs-6">
|
| 137 | <!--input type="button" data-trans="new" class="btn btn-primary" data-bind="click: openNewPage,enable:!initFail()"/-->
|
| 138 | <!--input type="button" data-trans="send_sms" class="btn btn-primary"
|
| 139 | data-bind="visible: hasSms(), click: openSendMessagePage,enable:canSend(),css:{'disabled':!canSend()}"/-->
|
| 140 | <!--<input type="button" data-trans="edit" class="btn"-->
|
| 141 | <!--data-bind="click: openEditPage ,enable:hasData(),css:{'disabled':!hasData()"/>-->
|
| 142 | <input data-trans="delete"
|
| 143 | data-bind="click: deleteBooks ,enable:hasChecked(),css:{'disabled':!hasChecked()}" type="button" class="btn btn-primary"/>
|
| 144 | <!--input type="button" data-trans="delete_all" class="btn btn-primary"
|
| 145 | data-bind="click: deleteAllBooks ,enable:hasData(),css:{'disabled':!hasData()}"/-->
|
| 146 | <!--<input type="button" data-trans="view" class="btn"-->
|
| 147 | <!--data-bind="click: openViewPage,,enable:hasData(),css:{'disabled':!hasData()"/>-->
|
| 148 | </div>
|
| 149 | <div class='col-xs-6 text-right positionrelative'>
|
| 150 | <div class="row">
|
| 151 | <div class='col-xs-6'>
|
| 152 | <div class='ko-grid-search'>
|
| 153 | <img src='./pic/res_search.png'>
|
| 154 | <input id='ko_grid_search_txt' type='text' class='ko-grid-search-txt-default width102 noDefaultFocus form-control'
|
| 155 | data-bind="value:gridTemplate.searchKey,valueUpdate: 'keyup',click:searchTextClick,event:{blur:searchTextBlur}"
|
| 156 | autocomplete='off' data-trans='search' maxlength="40"/>
|
| 157 | <img id="clearSearchKey" class='cursor-pointer' src='./pic/res_delete.png' data-bind='click:clearSearchKey'/>
|
| 158 | </div>
|
| 159 | </div>
|
| 160 | <div class='col-xs-6'>
|
| 161 | <select id="selectedFilterGroup" data-bind="value: selectedFilterGroup, event: {change: selectedFilterGroupChangeHandler}" name="selectedFilterGroup" class="form-control">
|
| 162 | <option data-trans="group_all" value="all"></option>
|
| 163 | <option data-trans="group_common" value="common"></option>
|
| 164 | <option data-trans="group_family" value="family"></option>
|
| 165 | <option data-trans="group_friend" value="friend"></option>
|
| 166 | <option data-trans="group_colleague" value="colleague"></option>
|
| 167 | </select>
|
| 168 | </div>
|
| 169 | </div>
|
| 170 | </div>
|
| 171 | <div class='clear'></div>
|
| 172 | </div>
|
| 173 | <div id="books" data-bind="simpleGrid: gridTemplate"></div>
|
| 174 | </div>
|
| 175 | </form>
|
| 176 | <form id="frmSendMsg">
|
| 177 | <div id="sendMessage" data-bind="visible: pageState()==4">
|
| 178 | <!--h1 class="form-title header-bottom" data-trans="new_message"></h1-->
|
| 179 | <div class="content">
|
| 180 | <div class="row form-group">
|
| 181 | <label data-trans='send_numbers' class="col-xs-2 side-right"></label>
|
| 182 | <div class="col-xs-10">
|
| 183 | <input type="text" value="test" class="required hide"/>
|
| 184 | <div id="chosenUserList">
|
| 185 | <select id="chosenUserSelect" multiple class="chosen-select-deselect width540" data-bind="event:{change: draftListenerEvent}"></select>
|
| 186 | </div>
|
| 187 | </div>
|
| 188 | </div>
|
| 189 | <div class="row form-group">
|
| 190 | <label data-trans='contents' class="col-xs-2 side-right"></label>
|
| 191 | <div class="col-xs-10">
|
| 192 | <textarea id="txtSmsContent"
|
| 193 | data-bind="value:messageContent,valueUpdate: 'afterkeydown'" style="width: 545px; height: 150px;" name="txtSmsContent" class="form-control"></textarea>
|
| 194 | </div>
|
| 195 | </div>
|
| 196 | <div class="row form-group">
|
| 197 | <label class="col-xs-2 side-right"></label>
|
| 198 | <div class="col-xs-10">
|
| 199 | <div class="row form-group">
|
| 200 | <div class="col-xs-9">
|
| 201 | <span id="msgCount" data-bind="text:messageCount" class="paddingleft10"></span>
|
| 202 | <span data-bind="visible:showErrorInfo" data-trans="sms_contact_required" class="error-msg"></span>
|
| 203 | </div>
|
| 204 | <div class="col-xs-3 side-right">
|
| 205 | <input data-trans="send" data-bind="click:sendMessage" type="button" class="btn btn-primary"/>
|
| 206 | <!--span class="paddingright10"><input type="button" data-trans="back" class="btn btn-default" data-bind="click:btnClear"/></span-->
|
| 207 | </div>
|
| 208 | </div>
|
| 209 | </div>
|
| 210 | </div>
|
| 211 | </div>
|
| 212 |
|
| 213 | </div>
|
| 214 | </form>
|
| 215 | </div>
|
| 216 | </div>
|
| 217 | </div> |