From: indresh singh bhadoria Date: Tue, 27 Jun 2017 18:02:54 +0530 Subject: api UI change --- api UI change --- Binary files 'a/css/loading.gif' and /dev/null differ Binary files /dev/null and b/css/loading.png differ --- 'a/css/styles.css' +++ b/css/styles.css @@ -4577,7 +4577,7 @@ table.compare tr td .add_to_cart_button } .box:hover { - border:1px solid #f15d35; + border:1px solid blueviolet !important; background: #fefefe; } @@ -5319,4 +5319,7 @@ if it's not present, don't show loader * z-index: 9999; opacity: 0.4; background: url(loading.gif) center no-repeat transparent; +} +.btn-default:hover{ + border:1px solid blueviolet; } \ No newline at end of file --- 'a/doc.php' +++ b/doc.php @@ -125,7 +125,7 @@ include 'header.php';
-
+
@@ -136,8 +136,8 @@ include 'header.php';
- - + +
@@ -156,22 +156,24 @@ include 'header.php'; echo '"; } if ($api_detail['type'] == "file") { - echo ""; } - echo ""; ?> - "; + } ?>
-
-
-
'; echo ''; echo($api_detail['name']); + echo ""; + echo ""; echo ''; echo($api_detail['name']); + echo " - - +
+
+
@@ -227,7 +228,6 @@ include 'header.php'; Complete PaymentCancel - @@ -274,7 +274,7 @@ function uriData(id, parent) { " + dwnldTd + ""; $("#folderPath").html(uriDataHtml); }); - $("#parent").html("" + result.directory + ""); + $("#parent").html("" + result.directory + ""); $(".se-pre-con").hide(); }, "json") .fail(function () { Binary files /dev/null and b/images/download.png differ Binary files /dev/null and b/images/h6viz.gif differ --- 'a/payment.php' +++ b/payment.php @@ -41,7 +41,7 @@
-
+
Ammount: Rs.10
--- 'a/uploaddoc.php' +++ b/uploaddoc.php @@ -122,11 +122,11 @@ include 'header.php';
-
+
- - + +
@@ -135,13 +135,14 @@ include 'header.php'; -
+
Name " + result.items[i].uri + "
@@ -169,7 +170,7 @@ include 'header.php'; echo($api_detail['name']); } if ($api_detail['type'] == "file") { - echo " - @@ -193,6 +191,7 @@ include 'header.php'; Cancel + @@ -223,54 +222,33 @@ function uriData(id, parent) { var uriDataHtml = ""; var fileOrFolder = ""; var onclickFnc = ""; - var dwnldTd = ""; + //var dwnldTd = ""; var accessToken = ""; var urifnc = ""; $.post(urifnc, {access_token: accessTocken, id: id}, function (result) { $.each(result.items, function (i, l) { - if (result.items[i].type == "file") { console.log(result.items); fileOrFolder = ''; onclickFnc = "onclick='thisIsNotAFolder()'"; - dwnldTd = ""; + //dwnldTd = ""; } else { fileOrFolder = ''; onclickFnc = "onclick='uriData(" + result.items[i].id + "," + result.items[i].parent + ")'"; dwnldTd = ""; } uriDataHtml += "\n\ -" + dwnldTd + ""; + " + dwnldTd + ""; $("#folderPath").html(uriDataHtml); }); $("#filePath").val(result.directory); - $("#parent").html("" + result.directory + ""); + $("#parent").html("" + result.directory + ""); $(".se-pre-con").hide(); }, "json") .fail(function () { $("#folderPath").html("Some error found"); }); } -function download(uris, filename) { - $(".se-pre-con").show(); - var getdata = uris.split(","); - var uri = getdata[0]; - var filename = getdata[1]; - var accessTocken = ""; - var dlscfnc = "" - var arraydata = {uri: uri, accesstoken: accessTocken, filename: filename} - $.ajax({ - url: dlscfnc + 'download.php', - type: 'POST', - data: arraydata - }).done(function (response) - { - $(".se-pre-con").hide(); - var getdata = JSON.parse(response); - console.log(getdata[1]); - window.open("data:" + getdata[0] + ";base64," + getdata[1], '', 'height=650,width=840'); - }); -} $(".se-pre-con").fadeOut("slow"); \ No newline at end of file
"; + echo ""; echo ''; echo($api_detail['name']); } @@ -178,9 +179,6 @@ include 'header.php'; - -
" + fileOrFolder + result.items[i].name + "" + result.items[i].size + "" + result.items[i].date + "" + result.items[i].uri + "
" + result.items[i].uri + "