Commit e92090da8c92d0d597a009ca5957b7e44f1e1ca8

Authored by rcavalie
1 parent c5d66cb2

ok

app/src/main/AndroidManifest.xml
... ... @@ -18,7 +18,6 @@
18 18 <activity
19 19 android:name=".MainActivity"
20 20 android:label="@string/app_name"
21   - android:screenOrientation="landscape"
22 21 >
23 22 <intent-filter>
24 23 <action android:name="android.intent.action.MAIN" />
... ...
app/src/main/java/ssrmarcsautelet/automation/appli/ssrmarcsautelet/activity_hop.java
1 1 package ssrmarcsautelet.automation.appli.ssrmarcsautelet;
2 2  
3 3 import android.os.Bundle;
4   -import android.os.Environment;
5 4 import android.support.v7.app.AppCompatActivity;
6 5 import android.webkit.WebSettings;
7 6 import android.webkit.WebView;
... ... @@ -96,6 +95,10 @@ public class activity_hop extends AppCompatActivity
96 95 {
97 96 fiche_educ.loadUrl("file:///sdcard/SSR_docs/orga_standard.html");
98 97 }
  98 + if (result_appui2.equals("ecole"))
  99 + {
  100 + fiche_educ.loadUrl("file:///sdcard/SSR_docs/orga_ecole.html");
  101 + }
99 102 }
100 103  
101 104 }
... ...
app/src/main/java/ssrmarcsautelet/automation/appli/ssrmarcsautelet/activity_val.java
... ... @@ -87,6 +87,7 @@ public class activity_val extends AppCompatActivity {
87 87 "orga_assist.html",
88 88 "orga_cadre.html",
89 89 "orga_doc.html",
  90 + "orga_ecole",
90 91 "orga_ergo.html",
91 92 "orga_grands.html",
92 93 "orga_inf.html",
... ... @@ -278,7 +279,7 @@ public class activity_val extends AppCompatActivity {
278 279 url + dir[166], url + dir[167], url + dir[168], url + dir[169], url + dir[170], url + dir[171], url + dir[172],
279 280 url + dir[173], url + dir[174], url + dir[175], url + dir[176], url + dir[177], url + dir[178], url + dir[179], url + dir[180],
280 281 url + dir[181], url + dir[182], url + dir[183], url + dir[184], url + dir[185], url + dir[186],
281   - url + dir[187], url + dir[188], url + dir[189], url + dir[190]);//
  282 + url + dir[187], url + dir[188], url + dir[189], url + dir[190], url + dir[191]);//
282 283  
283 284 context = getApplicationContext();
284 285 Toast toast1 = Toast.makeText(context, "Téléchargement en cours", duration);
... ...
app/src/main/java/ssrmarcsautelet/automation/appli/ssrmarcsautelet/plan_hospital.java
... ... @@ -127,4 +127,9 @@ public class plan_hospital extends AppCompatActivity
127 127 startActivity(i);
128 128 }
129 129  
  130 + public void ecole(View v) {
  131 + Intent i = new Intent(plan_hospital.this, activity_hop.class);
  132 + i.putExtra("result_appui","ecole");
  133 + startActivity(i);
  134 + }
130 135 }
... ...
app/src/main/res/layout/activity_planhop.xml
... ... @@ -234,4 +234,17 @@
234 234 android:layout_below="@+id/doc"
235 235 android:background="@android:color/transparent"
236 236 android:onClick="standartiste"/>
  237 +
  238 + <Button
  239 + android:id="@+id/ecole"
  240 + android:layout_width="wrap_content"
  241 + android:layout_height="wrap_content"
  242 + android:layout_alignTop="@+id/doc"
  243 + android:layout_marginEnd="44dp"
  244 + android:layout_marginRight="44dp"
  245 + android:layout_marginTop="13dp"
  246 + android:layout_toLeftOf="@+id/ortho"
  247 + android:layout_toStartOf="@+id/ortho"
  248 + android:background="@color/zxing_transparent"
  249 + android:onClick="ecole"/>
237 250 </RelativeLayout>
238 251 \ No newline at end of file
... ...